mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +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) ||
|
||||
|
||||
@@ -1146,7 +1146,6 @@ sub lm75_detect
|
||||
my $conf = i2c_smbus_read_byte_data($file,0x01);
|
||||
my $hyst = i2c_smbus_read_word_data($file,0x02);
|
||||
my $os = i2c_smbus_read_word_data($file,0x03);
|
||||
return if $hyst & 0x7f00 or $os & 0x7f00 or $cur & 0x7f00;
|
||||
for ($i = 0x00; $i <= 0x1f; $i += 1) {
|
||||
return if i2c_smbus_read_byte_data($file,($i * 0x08) + 0x01) != $conf;
|
||||
return if i2c_smbus_read_word_data($file,($i * 0x08) + 0x02) != $hyst;
|
||||
|
||||
Reference in new issue
Block a user