Skip to contentSkip to conversation

hwmon/f71882fg: Actually read registers for

PATCH Applied Hans de Goede 2 participants 2 messages Apr 27, 2011 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon/f71882fg: Actually read registers for

---
 drivers/hwmon/f71882fg.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/hwmon/f71882fg.c +7 -1
index 61ffab5..a4a94a0 100644
@@ -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
Applied
#1 lore raw

Re: [lm-sensors] [PATCH] hwmon/f71882fg: Actually read registers

Quoted 13 lines · Hans de Goede
---
 drivers/hwmon/f71882fg.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
drivers/hwmon/f71882fg.c +0 -1
index 61ffab5..a4a94a0 100644
@@ -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