2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-09-02 07:15:39 +00:00

Fix W83791D detection.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2034 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2003-10-28 19:17:04 +00:00
parent 34076ded72
commit e574d476b5
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@
w83781d 7 3 0 3 0x10-1 0x5ca3 yes yes w83781d 7 3 0 3 0x10-1 0x5ca3 yes yes
w83782d 9 3 2-4 3 0x30 0x5ca3 yes yes w83782d 9 3 2-4 3 0x30 0x5ca3 yes yes
w83783s 5-6 3 2 1-2 0x40 0x5ca3 yes no w83783s 5-6 3 2 1-2 0x40 0x5ca3 yes no
w83791d 10 5 5 3 0x70 0x5ca3 yes no w83791d 10 5 5 3 0x71 0x5ca3 yes no
*/ */
@@ -1014,7 +1014,7 @@ static int w83781d_detect(struct i2c_adapter *adapter, int address,
kind = w83783s; kind = w83783s;
else if (val1 == 0x21 && vendid == winbond) else if (val1 == 0x21 && vendid == winbond)
kind = w83627hf; kind = w83627hf;
else if (val1 == 0x70 && vendid == winbond && address >= 0x2c) else if (val1 == 0x71 && vendid == winbond && address >= 0x2c)
kind = w83791d; kind = w83791d;
else if (val1 == 0x31 && !is_isa && address >= 0x28) else if (val1 == 0x31 && !is_isa && address >= 0x28)
kind = as99127f; kind = as99127f;

View File

@@ -2699,7 +2699,7 @@ sub w83781d_detect
return if $chip == 4 and $reg1 != 0x31; return if $chip == 4 and $reg1 != 0x31;
return if $chip == 5 and $reg1 != 0x31; return if $chip == 5 and $reg1 != 0x31;
return if $chip == 6 and $reg1 != 0x31; return if $chip == 6 and $reg1 != 0x31;
return if $chip == 7 and $reg1 != 0x70; return if $chip == 7 and $reg1 != 0x71;
$reg1 = i2c_smbus_read_byte_data($file,0x4a); $reg1 = i2c_smbus_read_byte_data($file,0x4a);
@res = (8); @res = (8);
@res = (7) # Asus chips were always seen at 0x2d @res = (7) # Asus chips were always seen at 0x2d