diff options
author | Hans de Goede <j.w.r.degoede@hhs.nl> | 2007-07-22 14:15:31 -0400 |
---|---|---|
committer | Mark M. Hoffman <mhoffman@lightlink.com> | 2007-07-30 21:08:38 -0400 |
commit | 794f5434942614e5e8f70b9d65b9275e11ad1510 (patch) | |
tree | 61ea8b370174226bd9e535110b2d254cdc2db269 /drivers/hwmon/fscher.c | |
parent | c0f31403fe87cd2813dabb9b33107ceb56b84667 (diff) |
hwmon: fscher control update bugfix
Here is another small fscher bugfix for 2.6.23 merging, this was caught by Jean
while reviewing my other bugfix. The driver was updating its copy of the
control register as if it was clear to write, but its regular read/write. This
patch fixes this.
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>
Diffstat (limited to 'drivers/hwmon/fscher.c')
-rw-r--r-- | drivers/hwmon/fscher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/fscher.c b/drivers/hwmon/fscher.c index 19717752cfc..f3aa188a5d5 100644 --- a/drivers/hwmon/fscher.c +++ b/drivers/hwmon/fscher.c | |||
@@ -599,7 +599,7 @@ static ssize_t set_control(struct i2c_client *client, struct fscher_data *data, | |||
599 | unsigned long v = simple_strtoul(buf, NULL, 10) & 0x01; | 599 | unsigned long v = simple_strtoul(buf, NULL, 10) & 0x01; |
600 | 600 | ||
601 | mutex_lock(&data->update_lock); | 601 | mutex_lock(&data->update_lock); |
602 | data->global_control &= ~v; | 602 | data->global_control = v; |
603 | fscher_write_value(client, reg, v); | 603 | fscher_write_value(client, reg, v); |
604 | mutex_unlock(&data->update_lock); | 604 | mutex_unlock(&data->update_lock); |
605 | return count; | 605 | return count; |