From ec48efad1c67f17428a65468e73cb3ae1632fcaa Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 8 Jul 2004 19:16:14 +0000 Subject: [PATCH] Fix LM75 detection. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2637 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm75.c | 3 +-- prog/detect/sensors-detect | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/chips/lm75.c b/kernel/chips/lm75.c index 52a28db6..6e04a741 100644 --- a/kernel/chips/lm75.c +++ b/kernel/chips/lm75.c @@ -168,8 +168,7 @@ int lm75_detect(struct i2c_adapter *adapter, int address, goto error1; /* Unused bits */ - if ((conf & 0xe0) || (cur & 0x7f00) || (hyst & 0x7f00) - || (os & 0x7f00)) + if (conf & 0xe0) goto error1; /* Addresses cycling */ diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index c06fa539..78008829 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2840,8 +2840,7 @@ sub lm75_detect $hyst = swap_bytes($hyst); $os = swap_bytes($os); # Unused bits - return if ($conf & 0xe0) or ($cur & 0x007f) or ($hyst & 0x007f) - or ($os & 0x007f); + return if ($conf & 0xe0); $cur = $cur >> 8; $hyst = $hyst >> 8;