aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolaus Schulz <schulz@macnetix.de>2012-02-08 18:56:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-20 12:48:12 -0800
commit0f74c152fd01e1070c141eb10c70cc0f6fb39e22 (patch)
treec4044af60da36eb96e8280edb468ad0a63bd066e
parent8a6e41581a4537b53c038a328c558d455a6f3e3a (diff)
downloadkernel_samsung_smdk4412-0f74c152fd01e1070c141eb10c70cc0f6fb39e22.zip
kernel_samsung_smdk4412-0f74c152fd01e1070c141eb10c70cc0f6fb39e22.tar.gz
kernel_samsung_smdk4412-0f74c152fd01e1070c141eb10c70cc0f6fb39e22.tar.bz2
hwmon: (f75375s) Fix automatic pwm mode setting for F75373 & F75375
commit 09e87e5c4f9af656af2a8a3afc03487c5d9287c3 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 dcfd9e1..e4ab491 100644
--- a/drivers/hwmon/f75375s.c
+++ b/drivers/hwmon/f75375s.c
@@ -311,7 +311,7 @@ static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
fanmode |= (3 << FAN_CTRL_MODE(nr));
break;
case 2: /* AUTOMATIC*/
- fanmode |= (2 << FAN_CTRL_MODE(nr));
+ fanmode |= (1 << FAN_CTRL_MODE(nr));
break;
case 3: /* fan speed */
break;