diff options
| author | Hans de Goede <[email protected]> | 2024-07-17 20:03:33 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2024-07-26 22:16:15 +0000 |
| commit | 81af7f2342d162e24ac820c10e68684d9f927663 (patch) | |
| tree | 0e17871413fc97e250c90ae9c3f2586f24668f2e /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | power: supply: axp288_charger: Fix constant_charge_voltage writes (diff) | |
| download | kernel-81af7f2342d162e24ac820c10e68684d9f927663.tar.gz kernel-81af7f2342d162e24ac820c10e68684d9f927663.zip | |
power: supply: axp288_charger: Round constant_charge_voltage writes down
Round constant_charge_voltage writes down to the first supported lower
value, rather then rounding them up to the first supported higher value.
This fixes e.g. writing 4250000 resulting in a value of 4350000 which
might be dangerous, instead writing 4250000 will now result in a safe
4200000 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
