thermal: hwmon: move hwmon support to single file
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 3 Jul 2013 19:14:28 +0000 (15:14 -0400)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:45:18 +0000 (11:45 +0900)
commit34fe70478f6c5944bbc8fdcb0768e5ed77484894
tree5df981e497e6c5a8b1833de5be90263d2b586b0a
parent9b08d377fb355b23cb70a8bbe9ea860c7b03a6ae
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>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/thermal_core.c
drivers/thermal/thermal_hwmon.c [new file with mode: 0644]
drivers/thermal/thermal_hwmon.h [new file with mode: 0644]