1. 16 11月, 2010 7 次提交
    • J
      hwmon: (w83795) Read the intrusion state properly · cf6b9ea6
      Jean Delvare 提交于
      We can't read the intrusion state from the real-time alarm registers
      as we do for all other alarm flags, because real-time alarm bits don't
      stick (by definition) and the intrusion state has to stick until
      explicitly cleared (otherwise it has little value.)
      
      So we have to use the interrupt status register instead, which is read
      from the same address but with a configuration bit flipped in another
      register.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      cf6b9ea6
    • J
      hwmon: (w83795) Print the actual temperature channels as sources · 2a2d27da
      Jean Delvare 提交于
      Don't expose raw register values to user-space. Decode and encode
      temperature channels selected as temperature sources as needed.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      2a2d27da
    • J
      hwmon: (w83795) List all usable temperature sources · edff2f8d
      Jean Delvare 提交于
      Temperature sources are not correlated directly with temperature
      channels. A look-up table is required to find out which temperature
      sources can be used depending on which temperature channels (both
      analog and digital) are enabled.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      edff2f8d
    • J
      hwmon: (w83795) Expose fan control method · d5ab845a
      Jean Delvare 提交于
      Expose fan control method (DC vs. PWM) using the standard sysfs
      attributes. I've made it read-only as the board should be wired for
      a given mode, the BIOS should have set up the chip for this mode, and
      you shouldn't have to change it. But it would be easy enough to make
      it changeable if someone comes up with a use case.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      d5ab845a
    • J
      hwmon: (w83795) Fix fan control mode attributes · ae51cd9b
      Jean Delvare 提交于
      There were two bugs:
      * Speed cruise mode was improperly reported for all fans but fan1.
      * Fan control method (PWM vs. DC) was mixed with the control mode.
        It will be added back as a separate attribute, as per the standard
        sysfs interface.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NGuenter Roeck <guenter.roeck@ericsson.com>
      ae51cd9b
    • J
      hwmon: (lm95241) Check validity of input values · 61ec2da5
      Jean Delvare 提交于
      This clears the following build-time warnings I was seeing:
      
      drivers/hwmon/lm95241.c: In function "set_interval":
      drivers/hwmon/lm95241.c:132:15: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_max2":
      drivers/hwmon/lm95241.c:278:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_max1":
      drivers/hwmon/lm95241.c:277:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_min2":
      drivers/hwmon/lm95241.c:249:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_min1":
      drivers/hwmon/lm95241.c:248:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_type2":
      drivers/hwmon/lm95241.c:220:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      drivers/hwmon/lm95241.c: In function "set_type1":
      drivers/hwmon/lm95241.c:219:1: warning: ignoring return value of "strict_strtol", declared with attribute warn_unused_result
      
      This also fixes a small race in set_interval() as a side effect: by
      working with a temporary local variable we prevent data->interval from
      being accessed at a time it contains the interval value in the wrong
      unit.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Davide Rizzo <elpa.rizzo@gmail.com>
      61ec2da5
    • H
      hwmon: Change mail address of Hans J. Koch · 2aa25c22
      Hans J. Koch 提交于
      My old mail address doesn't exist anymore. This changes all occurrences
      to my new address.
      Signed-off-by: NHans J. Koch <hjk@hansjkoch.de>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      2aa25c22
  2. 14 11月, 2010 6 次提交
  3. 13 11月, 2010 27 次提交