Skip to content

Commit

Permalink
hwmon: fscher read control bugfix
Browse files Browse the repository at this point in the history
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 <j.w.r.degoede@hhs.nl>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
  • Loading branch information
Hans de Goede authored and Mark M. Hoffman committed Jul 31, 2007
1 parent 517ef0d commit 5cccf4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hwmon/fscher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5cccf4a

Please sign in to comment.