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

Lower confidence for Asus chips which are not at 0x2d.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1930 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2003-07-31 07:32:09 +00:00
parent cdb0eb97d7
commit 27e18c0245

View File

@@ -2599,6 +2599,8 @@ sub w83781d_detect
return if $chip == 7 and $reg1 != 0x70;
$reg1 = i2c_smbus_read_byte_data($file,0x4a);
@res = (8);
@res = (7) # Asus chips were always seen at 0x2d
if ($chip >= 4 && $chip <= 6 && $addr != 0x2d)
push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08 ;
push @res, (($reg1 & 0x70) >> 4) + 0x48 unless ($reg1 & 0x80 or $chip == 2);
return @res;