Skip to content

Commit

Permalink
hwmon: fscher control update bugfix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Mark M. Hoffman committed Jul 31, 2007
1 parent c0f3140 commit 794f543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/fscher.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ static ssize_t set_control(struct i2c_client *client, struct fscher_data *data,
unsigned long v = simple_strtoul(buf, NULL, 10) & 0x01;

mutex_lock(&data->update_lock);
data->global_control &= ~v;
data->global_control = v;
fscher_write_value(client, reg, v);
mutex_unlock(&data->update_lock);
return count;
Expand Down

0 comments on commit 794f543

Please sign in to comment.