]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: apm_power: use power_supply_for_each_psy()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 10 Dec 2024 21:55:52 +0000 (22:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 01:00:24 +0000 (02:00 +0100)
commit230fb418b47733d887dc8ca1a653b21f41f77399
tree8ac088285e3f44016b3f1cf5c5c0458b805c6e3e
parent87f57faa20ee2cc274400801fb197a27535ff6b5
power: supply: apm_power: 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-5-9d8c9d24cfe4@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/apm_power.c