From 8b82c4d22d0e87d77f085251284deeb8eb4ee12b Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 25 Oct 2003 18:53:48 +0000 Subject: [PATCH] Fix W83627HF detection. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2025 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/w83781d.c | 4 ++-- prog/detect/sensors-detect | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c index 9f26db77..9895bbd7 100644 --- a/kernel/chips/w83781d.c +++ b/kernel/chips/w83781d.c @@ -27,7 +27,7 @@ as99127f 7 3 1? 3 0x31 0x12c3 yes no as99127f rev.2 (type name = as99127f) 0x31 0x5ca3 yes no asb100 "bach" (type_name = as99127f) 0x31 0x0694 yes no - w83627hf 9 3 2 3 0x20 0x5ca3 yes yes(LPC) + w83627hf 9 3 2 3 0x21 0x5ca3 yes yes(LPC) w83697hf 8 2 2 2 0x60 0x5ca3 no yes(LPC) w83781d 7 3 0 3 0x10-1 0x5ca3 yes yes w83782d 9 3 2-4 3 0x30 0x5ca3 yes yes @@ -1012,7 +1012,7 @@ static int w83781d_detect(struct i2c_adapter *adapter, int address, kind = w83782d; else if (val1 == 0x40 && vendid == winbond && !is_isa && address == 0x2d) kind = w83783s; - else if (val1 == 0x20 && vendid == winbond) + else if (val1 == 0x21 && vendid == winbond) kind = w83627hf; else if (val1 == 0x70 && vendid == winbond && address >= 0x2c) kind = w83791d; diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 2962391a..ffb919ce 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2687,7 +2687,7 @@ sub w83781d_detect return if $chip == 0 and ($reg1 != 0x10 && $reg1 != 0x11); return if $chip == 1 and $reg1 != 0x30; return if $chip == 2 and $reg1 != 0x40; - return if $chip == 3 and $reg1 != 0x20; + return if $chip == 3 and $reg1 != 0x21; return if $chip == 4 and $reg1 != 0x31; return if $chip == 5 and $reg1 != 0x31; return if $chip == 6 and $reg1 != 0x31;