From 5cccf4a1a258ea5bff20e8440deb3dfcf032b04a Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 19 Jul 2007 15:57:20 +0200 Subject: hwmon: fscher read control bugfix 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. Signed-off-by: Hans de Goede Acked-by: Jean Delvare Signed-off-by: Mark M. Hoffman --- drivers/hwmon/fscher.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/hwmon/fscher.c') diff --git a/drivers/hwmon/fscher.c b/drivers/hwmon/fscher.c index f3aa188a5d5..b34b546c68b 100644 --- a/drivers/hwmon/fscher.c +++ b/drivers/hwmon/fscher.c @@ -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; -- cgit v1.2.3