diff options
author | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-07-03 15:14:28 -0400 |
---|---|---|
committer | Eduardo Valentin <eduardo.valentin@ti.com> | 2013-09-03 09:09:12 -0400 |
commit | 0dd88793aacd7c91b9724be7b618bb3f7c25befe (patch) | |
tree | 6bd7184103a59823c8f57174cdde7f3e7210de3a /drivers/thermal/Kconfig | |
parent | 73b5b1d7c5f9348c0fe3a3e4ac5586207d830d54 (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 checkpatch.pl.
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Diffstat (limited to 'drivers/thermal/Kconfig')
-rw-r--r-- | drivers/thermal/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig index ae18f025a761..dbfc390330ac 100644 --- a/drivers/thermal/Kconfig +++ b/drivers/thermal/Kconfig | |||
@@ -17,8 +17,17 @@ if THERMAL | |||
17 | 17 | ||
18 | config THERMAL_HWMON | 18 | config THERMAL_HWMON |
19 | bool | 19 | bool |
20 | prompt "Expose thermal sensors as hwmon device" | ||
20 | depends on HWMON=y || HWMON=THERMAL | 21 | depends on HWMON=y || HWMON=THERMAL |
21 | default y | 22 | default y |
23 | help | ||
24 | In case a sensor is registered with the thermal | ||
25 | framework, this option will also register it | ||
26 | as a hwmon. The sensor will then have the common | ||
27 | hwmon sysfs interface. | ||
28 | |||
29 | Say 'Y' here if you want all thermal sensors to | ||
30 | have hwmon sysfs interface too. | ||
22 | 31 | ||
23 | choice | 32 | choice |
24 | prompt "Default Thermal governor" | 33 | prompt "Default Thermal governor" |