diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2022-05-27 04:34:40 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2022-06-13 17:25:08 +0200 |
commit | f80345b89cc5cb61c6c586e6800a66c45261fd74 (patch) | |
tree | cd56f7fb2b31e75e6ccfa7fa34dfb44a4385f4ed /drivers/power | |
parent | platform/surface: aggregator_registry: Use client device wrappers for notifie... (diff) | |
download | linux-f80345b89cc5cb61c6c586e6800a66c45261fd74.tar.xz linux-f80345b89cc5cb61c6c586e6800a66c45261fd74.zip |
power/supply: surface_charger: Use client device wrappers for notifier registration
Use newly introduced client device wrapper functions for notifier
registration and unregistration.
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20220527023447.2460025-6-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/surface_charger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/supply/surface_charger.c b/drivers/power/supply/surface_charger.c index a060c36c7766..59182d55742d 100644 --- a/drivers/power/supply/surface_charger.c +++ b/drivers/power/supply/surface_charger.c @@ -216,7 +216,7 @@ static int spwr_ac_register(struct spwr_ac_device *ac) if (IS_ERR(ac->psy)) return PTR_ERR(ac->psy); - return ssam_notifier_register(ac->sdev->ctrl, &ac->notif); + return ssam_device_notifier_register(ac->sdev, &ac->notif); } @@ -251,7 +251,7 @@ static void surface_ac_remove(struct ssam_device *sdev) { struct spwr_ac_device *ac = ssam_device_get_drvdata(sdev); - ssam_notifier_unregister(sdev->ctrl, &ac->notif); + ssam_device_notifier_unregister(sdev, &ac->notif); } static const struct spwr_psy_properties spwr_psy_props_adp1 = { |