From acdc65cd6ba6a1ae71a2449200eb2ded272d91c4 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 10 Dec 2004 20:10:09 +0000 Subject: [PATCH] Increase the confidence of the Maxim MAX6657, MAX6658 and MAX6659 chips from 3 to 4 so that they won't be misdetected as MAX1617 (ticket #1841). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2795 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 637b4e04..104417b6 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3108,8 +3108,8 @@ sub lm83_detect # $_[1]: A reference to the file descriptor to access this chip. # We may assume an i2c_set_slave_addr was already done. # $_[2]: Address -# Returns: undef if not detected, 3, 6 or 8 if detected. -# The Maxim chips have a low confidence value (3) +# Returns: undef if not detected, 4, 6 or 8 if detected. +# The Maxim chips have a low confidence value (4) # because the die revision codes are not known. # Registers used: # 0x03: Configuration @@ -3156,7 +3156,7 @@ sub lm90_detect return if ($conf & 0x1f) != 0; return if $rate > 0x09; return if $mid != 0x4d; # Maxim - return 3; + return 4; } if ($chip == 5) { return if ($conf & 0x1b) != 0;