1. 03 Sep, 2013 4 commits
    • Eduardo Valentin's avatar
      thermal: thermal_core: allow binding with limits on bind_params · a8892d83
      Eduardo Valentin authored
      When registering a thermal zone device using platform information
      via bind_params, the thermal framework will always perform the
      cdev binding using the lowest and highest limits (THERMAL_NO_LIMIT).
      
      This patch changes the data structures so that it is possible
      to inform what are the desired limits for each trip point
      inside a bind_param. The way the binding is performed is also
      changed so that it uses the new data structure.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      a8892d83
    • Eduardo Valentin's avatar
      drivers: thermal: make usage of CONFIG_THERMAL_HWMON optional · ccba4ffd
      Eduardo Valentin authored
      When registering a new thermal_device, the thermal framework
      will always add a hwmon sysfs interface.
      
      This patch adds a flag to make this behavior optional. Now
      when registering a new thermal device, the caller can
      optionally inform if hwmon interface is desirable. This can
      be done by means of passing a thermal_zone_params.no_hwmon == true.
      
      In order to keep same behavior as of today, all current
      calls will by default create the hwmon interface.
      
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: linux-acpi@vger.kernel.org
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-pm@vger.kernel.org
      Cc: Zhang Rui <rui.zhang@intel.com>
      Suggested-by: default avatarWei Ni <wni@nvidia.com>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      ccba4ffd
    • Eduardo Valentin's avatar
      drivers: thermal: parent virtual hwmon with thermal zone · b82715fd
      Eduardo Valentin authored
      When  creating virtual hwmon devices based out of thermal
      zone devices, the virtual devices won't have parents.
      
      This patch changes the code so that the parent of virtual
      hwmon devices is the thermal zone device that they are
      based of.
      
      Cc: Zhang Rui <rui.zhang@intel.com>
      Cc: linux-pm@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      b82715fd
    • Eduardo Valentin's avatar
      thermal: hwmon: move hwmon support to single file · 0dd88793
      Eduardo Valentin authored
      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: default avatarDurgadoss R <durgadoss.r@intel.com>
      Signed-off-by: default avatarEduardo Valentin <eduardo.valentin@ti.com>
      0dd88793
  2. 29 Aug, 2013 6 commits
  3. 15 Aug, 2013 10 commits
  4. 13 Aug, 2013 20 commits