2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-01 23:05:25 +00:00

Fix LM75 detection.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2637 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-07-08 19:16:14 +00:00
parent 58fffd81d7
commit ec48efad1c
2 changed files with 2 additions and 4 deletions

View File

@@ -168,8 +168,7 @@ int lm75_detect(struct i2c_adapter *adapter, int address,
goto error1; goto error1;
/* Unused bits */ /* Unused bits */
if ((conf & 0xe0) || (cur & 0x7f00) || (hyst & 0x7f00) if (conf & 0xe0)
|| (os & 0x7f00))
goto error1; goto error1;
/* Addresses cycling */ /* Addresses cycling */

View File

@@ -2840,8 +2840,7 @@ sub lm75_detect
$hyst = swap_bytes($hyst); $hyst = swap_bytes($hyst);
$os = swap_bytes($os); $os = swap_bytes($os);
# Unused bits # Unused bits
return if ($conf & 0xe0) or ($cur & 0x007f) or ($hyst & 0x007f) return if ($conf & 0xe0);
or ($os & 0x007f);
$cur = $cur >> 8; $cur = $cur >> 8;
$hyst = $hyst >> 8; $hyst = $hyst >> 8;