Skip to contentSkip to conversation

hwmon: fscher control update 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 control update bugfix

From: Hans de Goede <[email protected]>

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.

---
 drivers/hwmon/fscher.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/fscher.c +1 -1
index 1971775..f3aa188 100644
@@ -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;
Signature · 7 lines
1.5.2.2


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