]> Gentwo Git Trees - linux/.git/commit
ACPI: battery: use DEFINE_SIMPLE_DEV_PM_OPS
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 4 Sep 2024 07:12:55 +0000 (09:12 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Oct 2024 16:45:18 +0000 (18:45 +0200)
commita56fdd874301c3a2d27097a7084467ab5bdc6815
tree396c20f284492f6faf5b569aaa5a3e839513ef82
parent0710c1ce50455ed0db91bffa0eebbaa4f69b1773
ACPI: battery: use DEFINE_SIMPLE_DEV_PM_OPS

Use the recommended macro to define the PM ops.

Also use pm_sleep_ptr() when assigning the ops to the driver.
This allows the removal of the ifdef CONFIG_PM_SLEEP.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240904-acpi-battery-cleanups-v1-4-a3bf74f22d40@weissschuh.net
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c