1. 15 Nov, 2010 4 commits
    • Jean Delvare's avatar
      hwmon: (w83795) Expose fan control method · d5ab845a
      Jean Delvare authored
      
      
      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: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
      d5ab845a
    • Jean Delvare's avatar
      hwmon: (w83795) Fix fan control mode attributes · ae51cd9b
      Jean Delvare authored
      
      
      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: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
      ae51cd9b
    • Jean Delvare's avatar
      hwmon: (lm95241) Check validity of input values · 61ec2da5
      Jean Delvare authored
      
      
      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: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Davide Rizzo <elpa.rizzo@gmail.com>
      61ec2da5
    • Hans J. Koch's avatar
      hwmon: Change mail address of Hans J. Koch · 2aa25c22
      Hans J. Koch authored
      
      
      My old mail address doesn't exist anymore. This changes all occurrences
      to my new address.
      Signed-off-by: default avatarHans J. Koch <hjk@hansjkoch.de>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      2aa25c22
  2. 13 Nov, 2010 6 commits
  3. 12 Nov, 2010 30 commits