diff options
author | 2023-01-23 16:27:56 +0100 | |
---|---|---|
committer | 2023-01-25 16:40:39 +0100 | |
commit | 5b8de18ee9027c647db4c1905f7fd0550d17d67a (patch) | |
tree | 4c2d9299e7cbc912759f89ba3eb9840f01116de6 /drivers/thermal/Makefile | |
parent | thermal/core: Remove unneeded ida_destroy() (diff) | |
download | linux-5b8de18ee9027c647db4c1905f7fd0550d17d67a.tar.gz linux-5b8de18ee9027c647db4c1905f7fd0550d17d67a.tar.bz2 linux-5b8de18ee9027c647db4c1905f7fd0550d17d67a.zip |
thermal/core: Move the thermal trip code to a dedicated file
The thermal_core.c files contains a lot of functions handling
different thermal components like the governors, the trip points, the
cooling device, the OF cooling device, etc ...
This organization does not help to migrate to a more sane code where
there is a better self-encapsulation as all the components' internals
can be directly accessed from a single file.
For the sake of clarity, let's move the thermal trip points code in a
dedicated thermal_trip.c file and add a function to browse all the
trip points like we do with the thermal zones, the govenors and the
cooling devices.
The same can be done for the cooling devices and the governor code but
that will come later as the current work in the thermal framework is
to fix the trip point handling and use a generic trip point structure.
No functional changes intended.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal/Makefile')
-rw-r--r-- | drivers/thermal/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile index 2506c6c8ca83..8b8d8517697a 100644 --- a/drivers/thermal/Makefile +++ b/drivers/thermal/Makefile @@ -4,8 +4,8 @@ # obj-$(CONFIG_THERMAL) += thermal_sys.o -thermal_sys-y += thermal_core.o thermal_sysfs.o \ - thermal_helpers.o +thermal_sys-y += thermal_core.o thermal_sysfs.o +thermal_sys-y += thermal_trip.o thermal_helpers.o # netlink interface to manage the thermal framework thermal_sys-$(CONFIG_THERMAL_NETLINK) += thermal_netlink.o |