ACPI: tiny-power-button: Eliminate the driver notify callback
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 4 Jun 2023 15:22:48 +0000 (17:22 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Jun 2023 17:48:09 +0000 (19:48 +0200)
commitff1d7aea83e2ea805b060d6a2f0623e41e3e4158
tree958d47b849fbc3d1c9c7f68741358e498d9de269
parente4e62d5fd8ecb0ea4174afda654432927d248a8a
ACPI: tiny-power-button: Eliminate the driver notify callback

Rework the ACPI tiny-power-button driver to install a notify handler or
a fixed event handler for the device it binds to by itself and drop its
notify callback.

This will allow acpi_device_install_notify_handler() and
acpi_device_remove_notify_handler() to be simplified going forward.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tiny-power-button.c