Skip to content

Commit

Permalink
hwmon: (f75375s) Fix reading of wrong register when initializing the …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Nikolaus Schulz authored and Guenter Roeck committed Feb 9, 2012
1 parent 09e87e5 commit a367a1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/f75375s.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a367a1e

Please sign in to comment.