]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd89e84746abbe3a902d16d67d54f2e135be2646c
tree6bd7184103a59823c8f57174cdde7f3e7210de3a
parentcc2206f552b99b7746076ce24a6ea06362613a01
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]