mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-19 19:40:49 +00:00
Removed 'bit 0-6 of LM75 word read must be zero' detection check, as
it is not necessary true, as proved by Ben Jarvis git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@445 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bafde5f9d3
commit
300b6bd6d7
2 files changed
-3
No files matched your search
@@ -168,8 +168,6 @@ int lm75_detect(struct i2c_adapter *adapter, int address, int kind)
|
||||
conf = smbus_read_byte_data(adapter,address,1);
|
||||
hyst = smbus_read_word_data(adapter,address,2);
|
||||
os = smbus_read_word_data(adapter,address,3);
|
||||
if ((hyst & 0x7f00) || (os & 0x7f00) || (cur & 0x7f00))
|
||||
goto ERROR1;
|
||||
for (i = 0; i <= 0x1f; i++)
|
||||
if ((smbus_read_byte_data(adapter,address,i*8+1) != conf) ||
|
||||
(smbus_read_word_data(adapter,address,i*8+2) != hyst) ||
|
||||
|
||||
Reference in new issue
Block a user