]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: core: use power_supply_for_each_psy()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 10 Dec 2024 21:55:50 +0000 (22:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 01:00:24 +0000 (02:00 +0100)
commit68abaf7323ae857db7ec56a174b7bbf5fc687d47
treecae2c6cfb8ddae7d72cd176b6df8273120f0fc82
parent9029409d1a250da19f1086ab1113752411c5163d
power: supply: core: 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-3-9d8c9d24cfe4@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c