mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-31 13:10:30 +00:00
Fix the writing of the temperature interrupt configuration.
The old code was working only by accident. Backport from Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4634 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d69b87bb74
commit
7429bc0191
1 file changed
+3
-2
@@ -568,9 +568,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 void via686a_update_client(struct i2c_client *client)
|
||||
|
||||
Reference in new issue
Block a user