W83627DHG has no subclients.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5334 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2008-09-10 07:30:12 +00:00
1 parent 869a6b7f81
commit bdaefa5efa
2 files changed
+4 -2

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ SVN-HEAD
Add ITE IT8720 support
Add Texas Instruments TMP411 support
Prevent misdetection of W83627DHG on I2C as LM78
W83627DHG has no subclients
2.10.7 (20080701)
Library: Don't choke on unrecognized devices, part 2
+3 -2
View File
@@ -4471,10 +4471,11 @@ sub w83781d_detect
return if $chip == 8 and $reg1 != 0x7a;
return if $chip == 9 and $reg1 != 0xa1;
return if $chip == 10 and $reg1 != 0xa2;
$reg1 = i2c_smbus_read_byte_data($file, 0x4a);
# Default address is 0x2d
@res = ($addr != 0x2d) ? (7) : (8);
return @res if $chip == 9; # No subclients
return @res if $chip >= 9; # No subclients
$reg1 = i2c_smbus_read_byte_data($file, 0x4a);
push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08;
push @res, (($reg1 & 0x70) >> 4) + 0x48 unless ($reg1 & 0x80 or $chip == 2);
return @res;