(mds) add verification of company ID reg 0x3e in detection.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@956 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2000-12-16 17:38:04 +00:00
1 parent ecb7bb70a3
commit 7871346710
1 file changed
+3 -1
+3 -1
View File
@@ -421,7 +421,9 @@ static int lm87_detect(struct i2c_adapter *adapter, int address,
/* Now, we do the remaining detection. */
if (kind < 0) {
if ((lm87_read_value(new_client, LM87_REG_CONFIG) & 0x80) != 0x00)
if (((lm87_read_value(new_client, LM87_REG_CONFIG) & 0x80)
!= 0x00) ||
(lm87_read_value(new_client, LM87_REG_COMPANY_ID) != 0x02))
goto ERROR1;
}