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)
committerAlex Shi <alex.shi@linaro.org>
Mon, 31 Mar 2014 07:47:20 +0000 (15:47 +0800)
commit3accd1f68e4c6f77bd51a288d0a9b623c656886f
tree56772dc8ffc7c46db2f2803de8f4c88313b2c8c9
parent510a773b0f771bb320d2a59af049e1c0e7e12d4c
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>
(cherry picked from commit 0dd88793aacd7c91b9724be7b618bb3f7c25befe)

Signed-off-by: Alex Shi <alex.shi@linaro.org>
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]