hwmon/f71882fg: Actually read registers for
PATCH 1/1 hwmon/f71882fg: Actually read registers for
Signed-off-by Hans de Goede <[email protected]>
--- drivers/hwmon/f71882fg.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/hwmon/f71882fg.c +7 -1
@@ -1266,7 +1266,13 @@ static struct f71882fg_data *f71882fg_update_device(struct device *dev) data->pwm[nr] f71882fg_read8(data, F71882FG_REG_PWM(nr)); } -/* The f8000 can monitor 1 more fan, but has no pwm for it */ +/* Some models have 1 more fan with limited capabilities */ +if (data->type = f71808a) { + data->fan[2 ] =f71882fg_read16 (data, +F71882FG_REG_FAN (2 )); + data->pwm[2 ] =f71882fg_read8 (data, +F71882FG_REG_PWM (2 )); + }if (data->type = f8000) data->fan[3 ] =f71882fg_read16 (data,F71882FG_REG_FAN (3 ));
Signature · 7 lines
1.7.4.4 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare
AppliedRe: [lm-sensors] [PATCH] hwmon/f71882fg: Actually read registers
Quoted 13 lines · Hans de Goede
Signed-off-by Hans de Goede <[email protected]>--- drivers/hwmon/f71882fg.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-)drivers/hwmon/f71882fg.c +0
-1@@ -1266,7 +1266,13 @@ static struct f71882fg_data *f71882fg_update_device(struct device *dev) data->pwm[nr] >f71882fg_read8 (data,F71882FG_REG_PWM (nr)); } -/* The f8000 can monitor 1 more fan, but has no pwm for it */
drivers/hwmon/f71882fg.c static struct f71882fg_data *f71882fg_update_device(struct device *dev) · line 1277
Quoted 10 lines
drivers/hwmon/f71882fg.c +7
-0+/* Some models have 1 more fan with limited capabilities */ +if (data->type = f71808a) { + data->fan[2 ] =f71882fg_read16 (data, +F71882FG_REG_FAN (2 )); + data->pwm[2 ] =f71882fg_read8 (data, +F71882FG_REG_PWM (2 )); + }if (data->type = f8000) data->fan[3 ] =f71882fg_read16 (data,F71882FG_REG_FAN (3 ));
Merged, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors