1. 03 6月, 2010 1 次提交
  2. 28 5月, 2010 4 次提交
    • J
      hwmon: (tmp102) Don't always stop chip at exit · 38806bda
      Jean Delvare 提交于
      Only stop the chip at driver exit if it was stopped when driver was
      loaded. Leave it running otherwise.
      
      Also restore the device configuration if probe failed, to not leave
      the system in a dangling state.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Steven King <sfking@fdwdc.com>
      38806bda
    • J
      hwmon: (tmp102) Fix suspend and resume functions · 8d4dee98
      Jean Delvare 提交于
      Suspend and resume functions shouldn't overwrite the configuration
      register. They should only alter the one bit they have to touch.
      
      Also don't assume that register reads and writes always succeed.
      Handle errors properly, shall they happen.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Steven King <sfking@fdwdc.com>
      8d4dee98
    • J
      hwmon: (tmp102) Various fixes · cff37c9e
      Jean Delvare 提交于
      Fixes from my driver review:
      http://lists.lm-sensors.org/pipermail/lm-sensors/2010-March/028051.html
      
      Only the small changes are in there, more important changes will come
      later separately as time permits.
      
      * Drop the remnants of the now gone detect function
      * The TMP102 has no known compatible chip
      * Include the right header files
      * Clarify why byte swapping of register values is needed
      * Strip resolution info bit from temperature register value
      * Set cache lifetime to 1/3 second
      * Don't arbitrarily reject limit values; clamp as needed
      * Make limit writing unconditional
      * Don't check for transaction types the driver doesn't use
      * Properly check for error when setting configuration
      * Report error on failed probe
      * Make the driver load automatically where needed
      * Various other minor fixes
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Steven King <sfking@fdwdc.com>
      cff37c9e
    • S
      hwmon: Driver for TI TMP102 temperature sensor · beb1b6bb
      Steven King 提交于
      Driver for the TI TMP102.
      
      The TI TMP102 is similar to the LM75.  It differs from the LM75 by
      having a 16-bit conf register and the temp registers have a minimum
      resolution of 12 bits; the extended conf register can select 13-bit
      resolution (which this driver does) and also change the update rate
      (which this driver currently doesn't use).
      
      [JD: Fix tmp102_exit tag, must be __exit, not __init.]
      Signed-off-by: NSteven King <sfking@fdwdc.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      beb1b6bb