Commit:     794f5434942614e5e8f70b9d65b9275e11ad1510
Parent:     c0f31403fe87cd2813dabb9b33107ceb56b84667
Author:     Hans de Goede <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 22 20:15:31 2007 +0200
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Mon Jul 30 21:08:38 2007 -0400

    hwmon: fscher control update bugfix
    Here is another small fscher bugfix for 2.6.23 merging, this was caught by 
    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.  
    patch fixes this.
    Signed-off-by: Hans de Goede <[EMAIL PROTECTED]>
    Acked-by: Jean Delvare <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
 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 1971775..f3aa188 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,
        unsigned long v = simple_strtoul(buf, NULL, 10) & 0x01;
-       data->global_control &= ~v;
+       data->global_control = v;
        fscher_write_value(client, reg, v);
        return count;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to