1. 31 3月, 2009 3 次提交
    • J
      hwmon: (ds1621) Avoid unneeded register access · e4879e28
      Jean Delvare 提交于
      Register access over SMBus isn't cheap, so avoid register access where
      possible:
      * Only write back the configuration register if it changed.
      * Don't refresh the register cache when we don't have to.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      e4879e28
    • J
      hwmon: (ds1621) Clean up register access · 594592dc
      Jean Delvare 提交于
      Fix a few oddities in how the ds1621 driver accesses the registers:
      * We don't need a wrapper to access the configuration register.
      * Check for error before calling swab16. Error checking isn't
        complete yet, but that's a start.
      * Device-specific read functions should never be called during
        detection, as by definition we don't know what device we are talking
        to at that point.
      * Likewise, don't assume that register reads succeed during detection.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      594592dc
    • J
      hwmon: (ds1621) Reorder code statements · 9202add6
      Jean Delvare 提交于
      Reorder the ds1621 driver code so that we can get rid of forward
      function declarations.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Aurelien Jarno <aurelien@aurel32.net>
      9202add6
  2. 30 3月, 2009 1 次提交
  3. 29 3月, 2009 36 次提交