mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
initialize shutdown bit instead of CMP/INT bit
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2917 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
65c760c9ff
commit
b9c1c73625
1 file changed
+3
-3
+3
-3
@@ -257,10 +257,10 @@ static void lm75_init_client(struct i2c_client *client)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* Set comparator mode if not in that mode */
|
||||
/* Enable if in shutdown */
|
||||
i = lm75_read_value(client, LM75_REG_CONF);
|
||||
if(i >= 0 && ((u8) i) & 0x02)
|
||||
lm75_write_value(client, LM75_REG_CONF, ((u8) i) & 0xfd);
|
||||
if(i >= 0 && ((u8) i) & 0x01)
|
||||
lm75_write_value(client, LM75_REG_CONF, ((u8) i) & 0xfe);
|
||||
}
|
||||
|
||||
static void lm75_update_client(struct i2c_client *client)
|
||||
|
||||
Reference in new issue
Block a user