]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: core: use dev_to_psy()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 10 Dec 2024 21:55:55 +0000 (22:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 01:00:25 +0000 (02:00 +0100)
commitead11ae3c0d9805012fb7bd3169f7771844410cc
treed0cefef9d0b59950e9fdb72ae30078a062e9fd74
parentf52204036326bd9c07db08bab6607f423c801716
power: supply: core: use dev_to_psy()

Use the new, explicit accessor to go from a 'struct device' to its
'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-8-9d8c9d24cfe4@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_core.c