Skip to contentSkip to conversation

hwmon: fscher read control bugfix

PATCH New Mark M. Hoffman 1 participant 1 message Jul 31, 2007 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: fscher read control bugfix

From: Hans de Goede <[email protected]>

Here is a small fscher bugfix for 2.6.23 merging, lifted from my other fscher work, as requested by Jean. The current driver has a control sysfs attribute, which shows the contents of the control register, but the underlying global_control value in the data structure currently never gets filled with the actual contents of this register.

---
 drivers/hwmon/fscher.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/hwmon/fscher.c +2 -0
index f3aa188..b34b546 100644
@@ -441,6 +441,8 @@ static struct fscher_data *fscher_update_device(struct device *dev)
 		data->watchdog[2] = fscher_read_value(client, FSCHER_REG_WDOG_CONTROL);
 
 		data->global_event = fscher_read_value(client, FSCHER_REG_EVENT_STATE);
+		data->global_control = fscher_read_value(client,
+							FSCHER_REG_CONTROL);
 
 		data->last_updated = jiffies;
 		data->valid = 1;                 
Signature · 7 lines
1.5.2.2


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors