Re: [PATCH v1 3/4] ACPI: thermal: Convert the driver to a platform one

From: lihuisong (C)

Date: Thu Dec 18 2025 - 01:41:10 EST



在 2025/12/10 22:43, Rafael J. Wysocki 写道:
From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

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@xxxxxxxxx>
I tested this series on my platform.
Yeah, there are some changes, such as a 'wakeup' directory.
But the function is ok. And this change is also ok to 'sensors' tool.

Tested-by: lihuisong@xxxxxxxxxx