OSDN Git Service

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)
committerEduardo Valentin <eduardo.valentin@ti.com>
Tue, 3 Sep 2013 13:09:12 +0000 (09:09 -0400)
commit0dd88793aacd7c91b9724be7b618bb3f7c25befe
tree6bd7184103a59823c8f57174cdde7f3e7210de3a
parent73b5b1d7c5f9348c0fe3a3e4ac5586207d830d54
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]