mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-01 13:20:30 +00:00
(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:
1 parent
ecb7bb70a3
commit
7871346710
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user