]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: (acpi_power_meter) Register ACPI notify handler directly
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 1 Mar 2026 13:18:05 +0000 (14:18 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 31 Mar 2026 02:45:05 +0000 (19:45 -0700)
commita5445f75443dba37698f336c2b28daba606e86cf
tree96187c2ef5e20e32885610ff06091727f9e2c3b0
parentde19682f9ecbe02a5287060b59e83c3ded8f0a39
hwmon: (acpi_power_meter) Register ACPI notify handler directly

To facilitate subsequent conversion of the driver to a platform one,
make it install an ACPI notify handler directly instead of using
a .notify() callback in struct acpi_driver.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/2405555.ElGaqSPkdT@rafael.j.wysocki
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/acpi_power_meter.c