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;