2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Lower the confidence value of the MAX6650/MAX6651 from 4 to 3.

These chips are easily misdetected.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5097 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2008-01-06 14:14:25 +00:00
parent 89b2310ff3
commit 81a7fbdb22
2 changed files with 3 additions and 2 deletions

View File

@@ -5307,7 +5307,7 @@ sub w83l785ts_detect
# if somebody finds a way to distinguish MAX6650 and MAX6651.
# $_[1]: A reference to the file descriptor to access this chip.
# $_[2]: Address
# Returns: undef if not detected, 4 if detected.
# Returns: undef if not detected, 3 if detected.
#
# The max6650 has no device ID register. However, a few registers have
# spare bits, which are documented as being always zero on read. We read
@@ -5334,7 +5334,7 @@ sub max6650_detect
return if i2c_smbus_read_byte_data($file,0x14) & 0xE0;
return if ($conf & 0xC0) or ($conf & 0x07) > 4;
return 4;
return 3;
}
# $_[0]: Chip to detect. Always zero.