diff options
author | Nikolaus Schulz <schulz@macnetix.de> | 2012-02-08 12:56:09 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-02-08 23:47:33 -0500 |
commit | a367a1e08b21e995c7112ff32b5efc97d104d405 (patch) | |
tree | 1c93195ca4f85a005989c496b15954e5ddf6342c | |
parent | 09e87e5c4f9af656af2a8a3afc03487c5d9287c3 (diff) |
hwmon: (f75375s) Fix reading of wrong register when initializing the F75387
Unlike the other chips supported by this driver, the F75387 stores the
pwm_mode in register F75375_REG_FAN_TIMER, not F75375_REG_CONFIG1.
Signed-off-by: Nikolaus Schulz <mail@microschulz.de>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
-rw-r--r-- | drivers/hwmon/f75375s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c index c81ad45d9fa9..b3eef4474a98 100644 --- a/drivers/hwmon/f75375s.c +++ b/drivers/hwmon/f75375s.c | |||
@@ -723,7 +723,7 @@ static void f75375_init(struct i2c_client *client, struct f75375_data *data, | |||
723 | if (data->kind == f75387) { | 723 | if (data->kind == f75387) { |
724 | bool manu, duty; | 724 | bool manu, duty; |
725 | 725 | ||
726 | if (!(conf & (1 << F75387_FAN_CTRL_LINEAR(nr)))) | 726 | if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr)))) |
727 | data->pwm_mode[nr] = 1; | 727 | data->pwm_mode[nr] = 1; |
728 | 728 | ||
729 | manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1); | 729 | manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1); |