power: supply: ab8500: Make recharge capacity a constant
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 20 Nov 2021 15:53:22 +0000 (16:53 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 22 Nov 2021 16:16:25 +0000 (17:16 +0100)
commit1091ed7db0d2957e015a5650ed17ff7537c2b3f3
treec25e613e27055e55d473e5382acbe31d75f9484f
parent9c20899da46b85ed00e6f3b935b4bd9c9b34a571
power: supply: ab8500: Make recharge capacity a constant

The recharge capacity is the hysteresis level for a charger to
restart when a battery does not support maintenance charging.

All products using the AB8500 have batteries supporting
maintenace charging and all code has always set this to 95%.

Turn it into a constant.

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_chargalg.c