mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user