]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: battery: Convert the driver to a platform one
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Dec 2025 14:03:28 +0000 (15:03 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:11:38 +0000 (15:11 +0100)
commit0a869409a981112565fac055739e9e2fd8575ade
tree5c25ae498835ea6b9aba3d02abd215c30c4d9ec9
parent0d17aafa79c6c5693a740a5b6c2693203e4043ee
ACPI: battery: 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 battery 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/3187448.CbtlEUcBR6@rafael.j.wysocki
drivers/acpi/battery.c