From 300b6bd6d7f83c7118648af5ca0cf5e2c90a8430 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Wed, 5 May 1999 15:51:42 +0000 Subject: [PATCH] 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 --- kernel/chips/lm75.c | 2 -- prog/detect/sensors-detect | 1 - 2 files changed, 3 deletions(-) diff --git a/kernel/chips/lm75.c b/kernel/chips/lm75.c index 4e2f731c..54967f04 100644 --- a/kernel/chips/lm75.c +++ b/kernel/chips/lm75.c @@ -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) || diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index f160306b..aa173b66 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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;