]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: ab8500: use power_supply_for_each_psy()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 10 Dec 2024 21:55:51 +0000 (22:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 01:00:24 +0000 (02:00 +0100)
commit87f57faa20ee2cc274400801fb197a27535ff6b5
tree59a37ca89fb7d52363114e70f2d89955684bd5fd
parent68abaf7323ae857db7ec56a174b7bbf5fc687d47
power: supply: ab8500: use power_supply_for_each_psy()

Simplify the callbacks by removing the need to convert a 'struct device'
into a 'struct power_supply'.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20241210-power-supply-dev_to_psy-v2-4-9d8c9d24cfe4@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_btemp.c
drivers/power/supply/ab8500_chargalg.c
drivers/power/supply/ab8500_charger.c
drivers/power/supply/ab8500_fg.c