1. 06 8月, 2014 1 次提交
    • A
      hwmon: (dme1737) Prevent overflow problem when writing large limits · d58e47d7
      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. Avoid auto-conversion from long to int to fix
      the problem.
      
      Voltage limits, fan minimum speed, pwm frequency, pwm ramp rate, and
      other attributes have the same problem, fix them as well.
      
      Zone temperature limits are signed, but were cached as u8, causing
      unepected values to be reported for negative temperatures. Cache as
      s8 to fix the problem.
      
      vrm is an u8, so the written value needs to be limited to [0, 255].
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      [Guenter Roeck: Fix zone temperature cache]
      Cc: stable@vger.kernel.org
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      d58e47d7
  2. 08 4月, 2013 1 次提交
    • G
      hwmon: Fix checkpatch warning 'quoted string split across lines' · b55f3757
      Guenter Roeck 提交于
      Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Cc: Juerg Haefliger <juergh@gmail.com>
      Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Cc: Jim Cromie <jim.cromie@gmail.com>
      Cc: Roger Lucas <vt8231@hiddenengine.co.uk>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      b55f3757
  3. 26 1月, 2013 1 次提交
  4. 29 11月, 2012 3 次提交
  5. 24 9月, 2012 1 次提交
  6. 19 3月, 2012 1 次提交
    • G
      hwmon: (dme1737) Fix checkpatch issues · c8de8362
      Guenter Roeck 提交于
      Fixed:
      WARNING: braces {} are not necessary for any arm of this statement
      WARNING: braces {} are not necessary for single statement blocks
      WARNING: simple_strtol is obsolete, use kstrtol instead
      
      Modify multi-line comments to follow Documentation/CodingStyle.
      
      Also: s/#define^I/#define /
      
      Not fixed (false positive):
      ERROR: Macros with multiple statements should be enclosed in a do - while loop
      
      Cc: Juerg Haefliger <juergh@gmail.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      c8de8362
  7. 13 1月, 2012 1 次提交
  8. 04 1月, 2012 1 次提交
  9. 13 1月, 2011 2 次提交
  10. 09 1月, 2011 1 次提交
  11. 28 5月, 2010 1 次提交
  12. 15 12月, 2009 3 次提交
  13. 10 12月, 2009 1 次提交
  14. 24 10月, 2009 1 次提交
  15. 23 9月, 2009 1 次提交
  16. 15 9月, 2009 1 次提交
  17. 07 1月, 2009 1 次提交
    • J
      hwmon: Check for ACPI resource conflicts · b9acb64a
      Jean Delvare 提交于
      Check for ACPI resource conflicts in hwmon drivers. I've included
      all Super-I/O and PCI drivers.
      
      I've voluntarily left out:
      * Vendor-specific drivers: if they conflicted on any system, this would
        pretty much mean that they conflict on all systems, and we would know
        by now.
      * Legacy ISA drivers (lm78 and w83781d): they only support chips found
        on old designs were ACPI either wasn't supported or didn't deal with
        thermal management.
      * Drivers accessing the I/O resources indirectly (e.g. through SMBus):
        the checks are already done where they belong, i.e. in the bus drivers.
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Acked-by: NDavid Hubbard <david.c.hubbard@gmail.com>
      b9acb64a
  18. 14 10月, 2008 2 次提交
    • J
      hwmon: (dme1737) Convert to a new-style i2c driver · 67a37308
      Jean Delvare 提交于
      The new-style dme1737 driver implements the optional detect() callback
      to cover the use cases of the legacy driver. I don't actually expect
      any new-style device for that driver, but as the old i2c API is going
      away soon, we have to switch to the new one.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Juerg Haefliger <juergh@gmail.com>
      67a37308
    • J
      hwmon: (dme1737) Be less i2c-centric · dbc2bc25
      Jean Delvare 提交于
      The dme1737 driver support both LPC (ISA) and SMBus devices. At the
      moment it's rather i2c-centric, and LPC variants use a fake i2c_client
      for some operations.
      
      In a near future, i2c_client will be allocated by i2c-core rather than
      by the device drivers, so non-i2c drivers will not have one. As a
      preparation step, change the driver code to no longer assume that
      an i2c_client structure is always available. No functional change.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Juerg Haefliger <juergh@gmail.com>
      dbc2bc25
  19. 07 8月, 2008 3 次提交
  20. 01 8月, 2008 3 次提交
  21. 19 2月, 2008 1 次提交
  22. 08 2月, 2008 3 次提交
  23. 11 10月, 2007 3 次提交
  24. 10 10月, 2007 1 次提交
  25. 31 7月, 2007 1 次提交
  26. 20 7月, 2007 1 次提交
    • J
      hwmon: New SMSC DME1737 driver · 9431996f
      Juerg Haefliger 提交于
      Add support for the hardware monitoring and fan control
      capabilities of the SMSC DME1737 and Asus A8000 Super-I/O chips.
      
      The hardware monitoring logic of this chip is similar to the LM85 but
      has some additional features that this driver supports. Even though
      it's a Super-I/O chip, the hardware monitoring logic can only be
      accessed via SMBus.
      
      Signed-off-by: Juerg Haefliger <juergh at gmail.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      9431996f