1. 04 8月, 2014 2 次提交
  2. 07 7月, 2014 1 次提交
    • G
      hwmon: (adm1031) Fix writes to limit registers · 145e74a4
      Guenter Roeck 提交于
      Upper limit for write operations to temperature limit registers
      was clamped to a fractional value. However, limit registers do
      not support fractional values. As a result, upper limits of 127.5
      degrees C or higher resulted in a rounded limit of 128 degrees C.
      Since limit registers are signed, this was stored as -128 degrees C.
      Clamp limits to (-55, +127) degrees C to solve the problem.
      
      Value on writes to auto_temp[12]_min and auto_temp[12]_max were not
      clamped at all, but masked. As a result, out-of-range writes resulted
      in a more or less arbitrary limit. Clamp those attributes to (0, 127)
      degrees C for more predictable results.
      
      Cc: Axel Lin <axel.lin@ingics.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: NJean Delvare <jdelvare@suse.de>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      145e74a4
  3. 30 1月, 2014 1 次提交
  4. 26 1月, 2013 1 次提交
  5. 22 7月, 2012 1 次提交
  6. 02 4月, 2012 1 次提交
    • G
      hwmon: (adm1031) Fix compiler warning · ce15a81d
      Guenter Roeck 提交于
      Some configurations produce the following compile warning:
      
      drivers/hwmon/adm1031.c: In function 'set_fan_auto_channel':
      drivers/hwmon/adm1031.c:292: warning: 'reg' may be used uninitialized in this function
      
      While this is a false positive, it can easily be fixed by overloading the return
      value from get_fan_auto_nearest with both register value and error return code
      (the register value is never negative). Coincidentially, that also reduces
      module size by a few bytes.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Acked-by: NJean Delvare <khali@linux-fr.org>
      ce15a81d
  7. 19 3月, 2012 2 次提交
  8. 17 1月, 2012 1 次提交
  9. 06 1月, 2012 1 次提交
  10. 17 9月, 2010 1 次提交
  11. 28 5月, 2010 1 次提交
  12. 15 12月, 2009 3 次提交
  13. 10 12月, 2009 1 次提交
  14. 24 9月, 2009 1 次提交
  15. 17 7月, 2008 1 次提交
  16. 19 2月, 2008 1 次提交
  17. 08 2月, 2008 4 次提交
  18. 10 10月, 2007 1 次提交
  19. 29 9月, 2006 1 次提交
  20. 24 3月, 2006 1 次提交
  21. 06 1月, 2006 3 次提交
  22. 29 10月, 2005 1 次提交
  23. 06 9月, 2005 4 次提交
  24. 27 8月, 2005 2 次提交
  25. 12 7月, 2005 1 次提交
  26. 22 6月, 2005 1 次提交
  27. 21 6月, 2005 1 次提交