aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/f75375s.c
diff options
context:
space:
mode:
authorNikolaus Schulz <schulz@macnetix.de>2012-02-08 12:56:08 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-02-08 23:47:33 -0500
commit09e87e5c4f9af656af2a8a3afc03487c5d9287c3 (patch)
treead3648abda472c501af6b555864fc7265a8a7f5f /drivers/hwmon/f75375s.c
parenteb564e1dbc3685c08a52a0eea3821815fac50511 (diff)
hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375
In order to enable temperature mode aka automatic mode for the F75373 and F75375 chips, the two FANx_MODE bits in the fan configuration register need be set to 01, not 10. Signed-off-by: Nikolaus Schulz <mail@microschulz.de> Cc: stable@kernel.org # 2.6.32+ Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/f75375s.c')
-rw-r--r--drivers/hwmon/f75375s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c
index eedf574ab539..c81ad45d9fa9 100644
--- a/drivers/hwmon/f75375s.c
+++ b/drivers/hwmon/f75375s.c
@@ -369,7 +369,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
369 fanmode |= (3 << FAN_CTRL_MODE(nr)); 369 fanmode |= (3 << FAN_CTRL_MODE(nr));
370 break; 370 break;
371 case 2: /* AUTOMATIC*/ 371 case 2: /* AUTOMATIC*/
372 fanmode |= (2 << FAN_CTRL_MODE(nr)); 372 fanmode |= (1 << FAN_CTRL_MODE(nr));
373 break; 373 break;
374 case 3: /* fan speed */ 374 case 3: /* fan speed */
375 break; 375 break;