ACPI: button: Tweak system wakeup handling
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Feb 2026 13:31:33 +0000 (14:31 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 13 Feb 2026 13:24:50 +0000 (14:24 +0100)
commitd323436b13f34b1df8261eb68989abda47e1785b
tree523d87ad5e225060877f8b6fe84d2e8f9847983c
parente91f8c5305b92b63c8bac315f95c535d5c1e8fec
ACPI: button: Tweak system wakeup handling

Modify struct acpi_button to hold a struct device pointer instead
of a struct platform_device one to avoid unnecessary pointer
dereferences and use that pointer consistently for system wakeup
initialization, handling and cleanup.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/1948258.tdWV9SEqCh@rafael.j.wysocki
drivers/acpi/button.c