]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: sysfs: use dev_to_psy()
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 10 Dec 2024 21:55:56 +0000 (22:55 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 11 Dec 2024 01:00:25 +0000 (02:00 +0100)
commit4543b0c3534c65d676a837640d1ed1611e5e3038
tree7f7e7c51d2fd31e3aeeb6a8bdcb3dc1c71a62491
parentead11ae3c0d9805012fb7bd3169f7771844410cc
power: supply: sysfs: 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-9-9d8c9d24cfe4@weissschuh.net
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/power_supply_sysfs.c