ACPI: thermal: Use library functions to obtain trip point temperature values
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Oct 2023 20:12:33 +0000 (22:12 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 21 Nov 2023 14:04:25 +0000 (15:04 +0100)
commit9c8647224e9fabb765019193aa43c054a638f808
treeab46baa5d1a130540a3db3e63e2dbaccbb3ce8fa
parent6908097aa5a7bd0c66c0b7ae9dd994b6ef62be8c
ACPI: thermal: Use library functions to obtain trip point temperature values

Modify the ACPI thermal driver to use functions from the ACPI thermal
library to obtain trip point temperature values instead of duplicating
them locally.

Among other things, this requires the functions in question to be
exported to it, because it can be built as a module.

It effectively changes the behavior of the driver to treat temperature
values out of the reasonable range (-55 centigrade to 175 centigrade) as
invalid, but there is no other expected functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/internal.h
drivers/acpi/thermal.c
drivers/acpi/thermal_lib.c