2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Improve ADM1032 detection.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1991 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2003-09-08 17:38:23 +00:00
parent 15490f82f5
commit 2b503c995c

View File

@@ -2541,7 +2541,7 @@ sub lm83_detect
# We may assume an i2c_set_slave_addr was already done.
# $_[2]: Address
# Returns: undef if not detected, 3, 7 or 8 if detected.
# The Analog Devices and Maxim chips have a low confidence value (3)
# The Maxim chips have a low confidence value (3)
# because the die revision codes are not known.
# Registers used:
# 0x03: Configuration
@@ -2575,7 +2575,7 @@ sub lm90_detect
if ($chip == 3) {
return if ($conf & 0x3f) != 0;
return if $mid != 0x41; # Analog Devices
return 3;
return 8 if ($cid & 0xf0) == 0x40; # ADM1032
}
if ($chip == 4) {
return if ($conf & 0x1f) != 0;