1. 04 8月, 2014 31 次提交
  2. 01 8月, 2014 1 次提交
    • A
      hwmon: (lm77) Prevent overflow problem when writing large limits · 99765db2
      Axel Lin 提交于
      On platforms with sizeof(int) < sizeof(long), writing a temperature
      limit larger than MAXINT will result in unpredictable limit values
      written to the chip.
      Clamp the input values to the supported limits first to fix the problem.
      
      For set_temp_hyst:
      As Guenter pointed out that the temperature is read as unsigned and stored in
      an unsigned long. This is wrong; nothing in the datasheet suggests that the
      value (the absolute temperature) must be positive.
      So change it to signed.
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      99765db2
  3. 31 7月, 2014 3 次提交
  4. 30 7月, 2014 1 次提交
  5. 28 7月, 2014 4 次提交