power: supply: ab8500: Standardize design capacity
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Nov 2021 15:53:16 +0000 (16:53 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 22 Nov 2021 16:16:25 +0000 (17:16 +0100)
commit22be8d77c80dca59af004d4595699b2092670499
tree42122703f35be98d99af13e79714275bb9058b5d
parente5dff305ab5c539320f1e30db44604e9977c3504
power: supply: ab8500: Standardize design capacity

Now that we know that we have only one battery type to
deal with we can proceed to transfer properties to
struct power_supply_battery_info.

The designed capacity for the battery was in a custom field
of the custom battery type in mAh, transfer this to the
standard charge_full_design_uah property in
struct power_supply_battery_info and augment the code
accordingly.

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_bmdata.c
drivers/power/supply/ab8500_fg.c