From bfde8c3975562f54c3c760755ef42314d6fd32c3 Mon Sep 17 00:00:00 2001 From: Rudolf Marek Date: Sun, 10 Dec 2006 10:55:01 +0000 Subject: [PATCH] Use die code to increase confidence for aSC7511 git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4258 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 99ca670b..f6cc00a3 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -3960,10 +3960,15 @@ sub andigilog_aSC7511_detect { my ($chip, $file, $addr) = @_; my $mid = i2c_smbus_read_byte_data($file, 0xfe); + my $die = i2c_smbus_read_byte_data($file, 0xff); if ($chip == 0) { return if $mid != 0x61; # Andigilog - return 1; + if ($die == 0x0) { + return 3; + } else { + return 1; + } } return; }