1
0
Fork 0

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>
hifive-unleashed-5.1
Nikolaus Schulz 2012-02-08 18:56:09 +01:00 committed by Guenter Roeck
parent 09e87e5c4f
commit a367a1e08b
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ static void f75375_init(struct i2c_client *client, struct f75375_data *data,
if (data->kind == f75387) {
bool manu, duty;
if (!(conf & (1 << F75387_FAN_CTRL_LINEAR(nr))))
if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr))))
data->pwm_mode[nr] = 1;
manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1);