ACPI: thermal: Simplify critical and hot trips representation
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Sep 2023 18:41:06 +0000 (20:41 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Sep 2023 15:57:28 +0000 (17:57 +0200)
commit30f04c7535e464f1824edb02e736a50be018777b
tree7a452c2e446a1e252c2a654c71af7385e9ee0aaa
parent06a5f76ee104c17022425ade32b970c1d7793e01
ACPI: thermal: Simplify critical and hot trips representation

Notice that the only piece of information regarding the critical and hot
trips that needs to be stored in the driver's local data structures is
whether or not these trips are valid, so drop all of the redundant
information from there and adjust the code accordingly.

Among other things, this requires acpi_thermal_add() to be rearranged
so as to obtain the critical trip temperature before populating the trip
points table and for symmetry, the hot trip temperature is obtained
earlier too.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/acpi/thermal.c