diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-03-12 09:36:02 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-03-22 14:55:38 +0000 |
commit | 417c0fc24dd4dbd60d94fa8deb36bf1176930e06 (patch) | |
tree | 9df5032371604c42ae56394520419e970dce6704 /drivers/power/supply/pm2301_charger.c | |
parent | 53207aa1a73e3e52b14c432b04d342c2b3af2e1c (diff) | |
download | lwn-417c0fc24dd4dbd60d94fa8deb36bf1176930e06.tar.gz lwn-417c0fc24dd4dbd60d94fa8deb36bf1176930e06.zip |
mfd/power: ab8500: Push data to power supply code
The global definition of platform data for the battery
management code has no utility after the OF conversion,
move the <linux/mfd/abx500/ab8500-bm.h> to be a local
file in drivers/power/supply and stop defining the
platform data in drivers/power/supply/ab8500_bmdata.c
and broadcast to the kernel only to have it assigned
as platform data to the MFD cells and then picked back
into the same subsystem that defined it in the first
place. This kills off a layer of indirection.
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>
Diffstat (limited to 'drivers/power/supply/pm2301_charger.c')
-rw-r--r-- | drivers/power/supply/pm2301_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/pm2301_charger.c b/drivers/power/supply/pm2301_charger.c index ac06ecf7fc9c..5aeff75db33b 100644 --- a/drivers/power/supply/pm2301_charger.c +++ b/drivers/power/supply/pm2301_charger.c @@ -18,13 +18,13 @@ #include <linux/i2c.h> #include <linux/workqueue.h> #include <linux/mfd/abx500/ab8500.h> -#include <linux/mfd/abx500/ab8500-bm.h> #include <linux/mfd/abx500/ux500_chargalg.h> #include <linux/pm2301_charger.h> #include <linux/gpio.h> #include <linux/pm_runtime.h> #include <linux/pm.h> +#include "ab8500-bm.h" #include "pm2301_charger.h" #define to_pm2xxx_charger_ac_device_info(x) container_of((x), \ |