]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47b04bb6c372db3d092ecf9d621901c19fd32312
treec25e613e27055e55d473e5382acbe31d75f9484f
parent86990da53e158d4a8c19d86faf49d82ebbd68ba7
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