From 080922bd33af7e958028cf934e671a1f005aada2 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 9 Jun 2007 10:11:16 -0400 Subject: [PATCH] --- yaml --- r: 61790 b: refs/heads/master c: 58fe0809cc02d51b7aca05ee858c8bbb0af9e0b6 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hwmon/via686a.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 90b2ba74934e..9b4b8c9a37ed 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1550cb6d7e78c7cfdd7b48bee6809795d43d6a33 +refs/heads/master: 58fe0809cc02d51b7aca05ee858c8bbb0af9e0b6 diff --git a/trunk/drivers/hwmon/via686a.c b/trunk/drivers/hwmon/via686a.c index 9a440c8cc520..a25b0542649c 100644 --- a/trunk/drivers/hwmon/via686a.c +++ b/trunk/drivers/hwmon/via686a.c @@ -740,9 +740,10 @@ static void via686a_init_client(struct i2c_client *client) via686a_write_value(client, VIA686A_REG_CONFIG, (reg|0x01)&0x7F); /* Configure temp interrupt mode for continuous-interrupt operation */ + reg = via686a_read_value(client, VIA686A_REG_TEMP_MODE); via686a_write_value(client, VIA686A_REG_TEMP_MODE, - via686a_read_value(client, VIA686A_REG_TEMP_MODE) & - !(VIA686A_TEMP_MODE_MASK | VIA686A_TEMP_MODE_CONTINUOUS)); + (reg & ~VIA686A_TEMP_MODE_MASK) + | VIA686A_TEMP_MODE_CONTINUOUS); } static struct via686a_data *via686a_update_device(struct device *dev)