From 81a7fbdb22e2e7fe0dabc39efd66611fe0ff3a00 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 6 Jan 2008 14:14:25 +0000 Subject: [PATCH] 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 --- CHANGES | 1 + prog/detect/sensors-detect | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 67a95d51..c02a9424 100644 --- a/CHANGES +++ b/CHANGES @@ -18,6 +18,7 @@ SVN sensors-detect: Drop PCA9540 detection Improve sysconfig and modprobe.d integration Add SMSC SCH5514D-NS detection (no sensors) + Lower the confidence of MAX6650/MAX6651 unhide_ICH_SMBus: Add support for the 82801AA (ICH) 3.0.0 (2007-11-24) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 0f1afc8b..9239a960 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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.