]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: tiny-power-button: Convert the driver to a platform one
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Dec 2025 13:59:00 +0000 (14:59 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:08:57 +0000 (15:08 +0100)
commitf4203ec64e1155c07c5d95bddc62201af8598c67
tree32375829b44eaa13e705fe25ded6741d9ee88fa6
parent52d86401963666423cb9a56d117136c846093db0
ACPI: tiny-power-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 tiny-power-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>
[ rjw: White space fixup ]
Link: https://patch.msgid.link/5629403.Sb9uPGUboI@rafael.j.wysocki
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/tiny-power-button.c