• E
    thermal: hwmon: move hwmon support to single file · 0dd88793
    Eduardo Valentin 提交于
    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: NDurgadoss R <durgadoss.r@intel.com>
    Signed-off-by: NEduardo Valentin <eduardo.valentin@ti.com>
    0dd88793
thermal_hwmon.c 7.3 KB