aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-bridge-test.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2024-07-17 20:03:32 +0000
committerSebastian Reichel <[email protected]>2024-07-26 22:16:15 +0000
commitb34ce4a59cfe9cd0d6f870e6408e8ec88a964585 (patch)
tree4cefd5fde2d43be3cd84c4db7e1b5f9a03742104 /drivers/fpga/tests/fpga-bridge-test.c
parentpower: supply: rt5033: Bring back i2c_set_clientdata (diff)
downloadkernel-b34ce4a59cfe9cd0d6f870e6408e8ec88a964585.tar.gz
kernel-b34ce4a59cfe9cd0d6f870e6408e8ec88a964585.zip
power: supply: axp288_charger: Fix constant_charge_voltage writes
info->max_cv is in millivolts, divide the microvolt value being written to constant_charge_voltage by 1000 *before* clamping it to info->max_cv. Before this fix the code always tried to set constant_charge_voltage to max_cv / 1000 = 4 millivolt, which ends up in setting it to 4.1V which is the lowest supported value. Fixes: 843735b788a4 ("power: axp288_charger: axp288 charger driver") Cc: [email protected] Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions