mfd/power: ab8500: Push algorithm to power supply code
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Mar 2021 08:36:03 +0000 (09:36 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Mar 2021 14:55:51 +0000 (14:55 +0000)
commita65aa0ce23bd3bc29c9f3a6a90fe032e1dbd8f34
tree52df88ce2030dc48f1464fc0b4a348c3900efef8
parent417c0fc24dd4dbd60d94fa8deb36bf1176930e06
mfd/power: ab8500: Push algorithm to power supply code

The charging algorithm header is only used locally in the
power supply subsystem so push this down into
drivers/power/supply and rename from the confusing
"ux500_chargalg.h" to "ab8500-chargalg.h" for clarity:
it is only used with the AB8500.

This is another remnant of non-DT code needing to pass
data from boardfiles, which we don't do anymore.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/supply/ab8500-chargalg.h [moved from include/linux/mfd/abx500/ux500_chargalg.h with 93% similarity]
drivers/power/supply/ab8500_charger.c
drivers/power/supply/abx500_chargalg.c
drivers/power/supply/pm2301_charger.c