[PATCH RFC 0/9] ACPI thermal cleanups

From: Daniel Lezcano
Date: Tue Oct 04 2022 - 13:27:22 EST


The thermal framework is being cleanup by changing how the thermal trips are
managed. In this process, the ACPI thermal drivers deserves a big cleanup in
order to use the generic trip points.

This series, which is still work in progress, has been tested on an ACPI based
platform.

Daniel Lezcano (9):
thermal/acpi: Remove the intermediate acpi_thermal_trip structure
thermal/acpi: Change to a common acpi_thermal_trip structure
thermal/acpi: Convert the acpi thermal trips to an array
thermal/acpi: Move the active trip points to the same array
thermal/acpi: Optimize get_trip_points()
thermal/acpi: Encapsualte in functions the trip initialization
thermal/acpi: Simplifify the condition check
thermal/acpi: Remove active and enabled flags
thermal/acpi: Rewrite the trip point intialization to use the generic
thermal trip

drivers/acpi/thermal.c | 670 ++++++++++++++++++++++++++---------------
1 file changed, 433 insertions(+), 237 deletions(-)

--
2.34.1