]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: button: Convert the driver to a platform one
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Dec 2025 13:57:57 +0000 (14:57 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:08:57 +0000 (15:08 +0100)
commit52d86401963666423cb9a56d117136c846093db0
tree99bc4e8ee6f5d6c3ede1a60e8225391eb3e040ab
parent93dc5db6d47aaa3b4b458ddfddfa3369c24e22f4
ACPI: button: Convert the driver to a platform one

While binding drivers directly to struct acpi_device objects allows
basic functionality to be provided, at least in the majority of cases,
there are some problems with it, related to general consistency, sysfs
layout, power management operation ordering, and code cleanliness.

Overall, it is better to bind drivers to platform devices than to their
ACPI companions, so convert the ACPI button driver to a platform one.

While this is not expected to alter functionality, it changes sysfs
layout and so it will be visible to user space.

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