1. 13 12月, 2016 1 次提交
  2. 17 4月, 2015 1 次提交
  3. 04 8月, 2014 2 次提交
  4. 31 7月, 2014 1 次提交
    • G
      hwmon: (lm85) Fix various errors on attribute writes · 3248c3b7
      Guenter Roeck 提交于
      Temperature limit register writes did not account for negative numbers.
      As a result, writing -127000 resulted in -126000 written into the
      temperature limit register. This problem affected temp[1-3]_min,
      temp[1-3]_max, temp[1-3]_auto_temp_crit, and temp[1-3]_auto_temp_min.
      
      When writing pwm[1-3]_freq, a long variable was auto-converted into an int
      without range check. Wiring values larger than MAXINT resulted in unexpected
      register values.
      
      When writing temp[1-3]_auto_temp_max, an unsigned long variable was
      auto-converted into an int without range check. Writing values larger than
      MAXINT resulted in unexpected register values.
      
      vrm is an u8, so the written value needs to be limited to [0, 255].
      
      Cc: Axel Lin <axel.lin@ingics.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      3248c3b7
  5. 12 6月, 2014 1 次提交
  6. 30 1月, 2014 1 次提交
  7. 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
  8. 26 1月, 2013 1 次提交
  9. 22 7月, 2012 1 次提交
  10. 19 3月, 2012 2 次提交
    • G
      hwmon: (lm85) Fix checkpatch issues · 09770b26
      Guenter Roeck 提交于
      Fixed:
      ERROR: code indent should use tabs where possible
      ERROR: do not use assignment in if condition
      WARNING: simple_strtol is obsolete, use kstrtol instead
      WARNING: simple_strtoul is obsolete, use kstrtoul 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: Jean Delvare <khali@linux-fr.org>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      09770b26
    • A
      hwmon: convert drivers/hwmon/* to use module_i2c_driver() · f0967eea
      Axel Lin 提交于
      This patch converts the drivers in drivers/hwmon/* to use the
      module_i2c_driver() macro which makes the code smaller and a bit simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
      Cc: Steve Glendinning <steve.glendinning@smsc.com>
      Cc: Riku Voipio <riku.voipio@iki.fi>
      Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com>
      Cc: David George <david.george@ska.ac.za>
      Cc: "Hans J. Koch" <hjk@hansjkoch.de>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      f0967eea
  11. 29 4月, 2011 2 次提交
  12. 31 3月, 2011 1 次提交
  13. 15 3月, 2011 4 次提交
  14. 19 2月, 2011 1 次提交
    • J
      hwmon: (lm85) extend to support EMC6D103 chips · f065a93e
      Jan Beulich 提交于
      The interface is identical EMC6D102, so all that needs to be added are
      some definitions and their uses.
      
      Registers apparently missing in EMC6D103S/EMC6D103:A2 compared to EMC6D103:A0,
      EMC6D103:A1, and EMC6D102 (according to the data sheets), but used
      unconditionally in the driver: 62[5:7], 6D[0:7], and 6E[0:7]. For that
      reason, EMC6D103S chips don't get enabled for the time being.
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      (Guenter Roeck: Replaced EMC6D103_A2 with EMC6D103S per EMC6D103S datasheet)
      Signed-off-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      Cc: stable@kernel.org
      f065a93e
  15. 29 10月, 2010 2 次提交
  16. 15 12月, 2009 3 次提交
  17. 10 12月, 2009 1 次提交
  18. 15 9月, 2009 1 次提交
  19. 11 3月, 2009 2 次提交
  20. 13 11月, 2008 1 次提交
  21. 17 10月, 2008 7 次提交
  22. 01 8月, 2008 3 次提交
    • J
      hwmon: (lm85) Simplify device initialization function · 5f447594
      Jean Delvare 提交于
      Clean up and simplify the device initialization function:
      * Degrade error messages to warnings - what they really are.
      * Stop warning about VxI mode, we don't really care.
      * Drop comment about lack of limit initialization - that's the standard
        way, all hardware monitoring drivers do that.
      * Only read the configuration register once.
      * Only write back to the configuration register if needed.
      * Don't attempt to clear the lock bit, it locks itself to 1.
      * Move the function to before it's called, so that we no longer need to
        forware declare it.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      5f447594
    • J
      hwmon: (lm85) Misc cleanups · e89e22b2
      Jean Delvare 提交于
      Misc cleanups to the lm85 hardware monitoring driver:
      * Mark constant arrays as const.
      * Remove useless masks.
      * Have lm85_write_value return void - nobody is checking the returned
        value anyway and in some cases it was plain wrong.
      * Remove useless initializations.
      * Rename new_client to client in lm85_detect.
      * Replace cascaded if/else with a switch/case in lm85_detect.
      * Group similar loops in lm85_update_device.
      * Remove legacy comments.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: Juerg Haefliger <juergh at gmail.com>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      e89e22b2
    • J
      hwmon: (lm85) Don't write back cached values · 7133e56f
      Jean Delvare 提交于
      In set_pwm_auto_pwm_minctl, we write cached register bits back to the
      chip. This is a bad idea as we have no guarantee that the cache is
      up-to-date. Better read a fresh register value from the chip, it's
      safer and in fact it is also more simple.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: Juerg Haefliger <juergh at gmail.com>
      Signed-off-by: NMark M. Hoffman <mhoffman@lightlink.com>
      7133e56f