power: supply: ab8500: Standardize CV voltage
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Nov 2021 15:53:24 +0000 (16:53 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 22 Nov 2021 16:16:26 +0000 (17:16 +0100)
commitbc6e0287140216011b99392fdf687a92707675ad
tree35c4322e245c5623a3af9b10799c6ac2eb7b1ded
parent83e5aa77d1120fd38101f757c4aeb985e9305700
power: supply: ab8500: Standardize CV voltage

The voltage used in the constant voltage phase of the charging
exist in struct power_supply_battery_info as
constant_charge_voltage_max_uv.

Switch the custom property normal_vol_lvl to this and
consequentially change everything that relates to this value
over to using microvolts rather than millivolts so
we align internal representation of current with the
power core. Prefix every variable we change with *_uv
to indicate the unit everywhere but also to make sure
we do not miss any outlier.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500-bm.h
drivers/power/supply/ab8500-chargalg.h
drivers/power/supply/ab8500_bmdata.c
drivers/power/supply/ab8500_chargalg.c
drivers/power/supply/ab8500_charger.c