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