]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: ab8500: Standardize alert mode charging
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Feb 2022 23:27:56 +0000 (00:27 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 28 Feb 2022 10:34:31 +0000 (11:34 +0100)
commit3a4fd6a677fb6d266a4f4feb2f3d9fe24e76f025
treeb0227cb217d7ba2c4787386a47cfdd80b1f707f1
parent74486dfa82e2dd64405fab86bfe63b2f875b5bb6
power: supply: ab8500: Standardize alert mode charging

The AB8500 code is using a special current and voltage setting
when the battery is in "alert mode", i.e. when it is starting
to go outside normal operating conditions so it is too
cold or too hot. This makes sense as a way for the charging
algorithm to deal with hostile environments.

Add the needed members to the struct power_supply_battery_info,
and switch the AB8500 charging code over to using this.

Reviewed-by: Matti Vaittineen <matti.vaittinen@fi.rohmeurope.com>
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
drivers/power/supply/power_supply_core.c
include/linux/power_supply.h