]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: thermal: Convert the driver to a platform one
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Dec 2025 14:43:45 +0000 (15:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Dec 2025 14:09:35 +0000 (15:09 +0100)
commitd1db160da0d1c4711267d311d2461127d7c9a2ba
tree396a09e606f9f9f7a3e7c3910d52c7a10e308710
parenta4975385997a6fa1a69c3e5004a48430830f960f
ACPI: thermal: 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 thermal zone 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>
Tested-by: lihuisong@huawei.com
Link: https://patch.msgid.link/2249483.irdbgypaU6@rafael.j.wysocki
drivers/acpi/thermal.c