Fix init bug (was causing the chipset to stop). Reported by

Ljubomir Bozic Jr..


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1992 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-09-13 20:55:59 +00:00
1 parent 2b503c995c
commit 93a260e714
1 file changed
+2 -2
+2 -2
View File
@@ -414,9 +414,9 @@ static void lm90_init_client(struct i2c_client *client)
i2c_smbus_write_byte_data(client, LM90_REG_W_CONVRATE,
5); /* 2 Hz */
config = i2c_smbus_read_byte_data(client, LM90_REG_R_CONFIG1);
if (!(config & 0x40))
if (config & 0x40)
i2c_smbus_write_byte_data(client, LM90_REG_W_CONFIG1,
config | 0x40); /* run */
config & 0xBF); /* run */
}