thermal: ACPI: Move the ACPI thermal library to drivers/acpi/
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 17 Oct 2023 20:05:23 +0000 (22:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 21 Nov 2023 14:04:08 +0000 (15:04 +0100)
commitf47507988145185aef5d0e7a0e28dbf6e7776f29
tree7cf14b9cb5c9619c947da018d24c9815dfefeec3
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
thermal: ACPI: Move the ACPI thermal library to drivers/acpi/

The ACPI thermal library contains functions that can be used to
retrieve trip point temperature values through the platform firmware
for various types of trip points.  Each of these functions basically
evaluates a specific ACPI object, checks if the value produced by it
is reasonable and returns it (or THERMAL_TEMP_INVALID if anything
fails).

It made sense to hold it in drivers/thermal/ so long as it was only used
by the code in that directory, but since it is also going to be used by
the ACPI thermal driver located in drivers/acpi/, move it to the latter
in order to keep the code related to evaluating ACPI objects defined in
the specification proper together.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/thermal_lib.c [new file with mode: 0644]
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/intel/Kconfig
drivers/thermal/intel/int340x_thermal/Kconfig
drivers/thermal/thermal_acpi.c [deleted file]
include/linux/acpi.h
include/linux/thermal.h