path: root/drivers/thermal/Makefile
diff options
authorEduardo Valentin <>2013-07-03 15:14:28 -0400
committerMyungJoo Ham <>2013-11-15 13:52:54 +0900
commit6620854a9d627297f26b6bb1f96822d2a184cc3d (patch)
tree88d775f704d1829570e79868b6c511a2db717c0c /drivers/thermal/Makefile
parent4e70f5a38affb991886b7c21c91c61c6efad36c9 (diff)
thermal: hwmon: move hwmon support to single file
In order to improve code organization, this patch moves the hwmon sysfs support to a file named thermal_hwmon. This helps to add extra support for hwmon without scrambling the code. In order to do this move, the hwmon list head is now using its own locking. Before, the list used the global thermal locking. Also, some minor changes in the code were required, as recommended by Cc: Zhang Rui <> Cc: Cc: Acked-by: Durgadoss R <> Signed-off-by: Eduardo Valentin <>
Diffstat (limited to 'drivers/thermal/Makefile')
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index c19df7ab261..584b36319d5 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -5,6 +5,9 @@
obj-$(CONFIG_THERMAL) += thermal_sys.o
thermal_sys-y += thermal_core.o
+# interface to/from other layers providing sensors
+thermal_sys-$(CONFIG_THERMAL_HWMON) += thermal_hwmon.o
# governors
thermal_sys-$(CONFIG_THERMAL_GOV_FAIR_SHARE) += fair_share.o
thermal_sys-$(CONFIG_THERMAL_GOV_STEP_WISE) += step_wise.o