Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=58fe0809cc02d51b7aca05ee858c8bbb0af9e0b6 Commit: 58fe0809cc02d51b7aca05ee858c8bbb0af9e0b6 Parent: 1550cb6d7e78c7cfdd7b48bee6809795d43d6a33 Author: Jean Delvare <[EMAIL PROTECTED]> AuthorDate: Sat Jun 9 10:11:16 2007 -0400 Committer: Mark M. Hoffman <[EMAIL PROTECTED]> CommitDate: Thu Jul 19 14:22:13 2007 -0400
hwmon/via686a: Temperature interrupt configuration fix Fix the writing of the temperature interrupt configuration. The old code was working only by accident. Signed-off-by: Jean Delvare <[EMAIL PROTECTED]> --- drivers/hwmon/via686a.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/via686a.c b/drivers/hwmon/via686a.c index 9a440c8..a25b054 100644 --- a/drivers/hwmon/via686a.c +++ b/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) - 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 http://vger.kernel.org/majordomo-info.html