From bce5bc715f9fb1ae1715a0bacf548dd57c9046e7 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Fri, 5 Nov 1999 04:08:07 +0000 Subject: [PATCH] (mds) Fix detection for as99127f (hopefully) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@620 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/w83781d.c | 2 +- prog/detect/sensors-detect | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c index 9ef263ee..4c9bb8e7 100644 --- a/kernel/chips/w83781d.c +++ b/kernel/chips/w83781d.c @@ -750,7 +750,7 @@ int w83781d_detect(struct i2c_adapter *adapter, int address, kind = w83783s; else if (val1 == 0x20 && vendid == winbond) kind = w83627hf; - else if (val1 == 0x20 && vendid == asus && !is_isa) + else if (val1 == 0x30 && vendid == asus && !is_isa) kind = as99127f; else { if (kind == 0) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index b8bcb63e..095c8599 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1307,7 +1307,7 @@ sub w83781d_detect return if $chip == 1 and $reg1 != 0x30; return if $chip == 2 and $reg1 != 0x40; return if $chip == 3 and $reg1 != 0x20; - return if $chip == 4 and $reg1 != 0x20; + return if $chip == 4 and $reg1 != 0x30; $reg1 = i2c_smbus_read_byte_data($file,0x4a); @res = (8); push @res, ($reg1 & 0x07) + 0x48 unless $reg1 & 0x08;