From 2fd866bf422a50f876e2d8da3ec7aa45bae24ea2 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Wed, 24 Feb 1999 01:16:40 +0000 Subject: [PATCH] Winbond detection fix. It should now correctly prefer the Winbond above the LM78 for ISA probes. I hope. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@271 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/detect.pl | 1 + prog/detect/sensors-detect | 1 + 2 files changed, 2 insertions(+) diff --git a/prog/detect/detect.pl b/prog/detect/detect.pl index a1e50830..7b6b694f 100755 --- a/prog/detect/detect.pl +++ b/prog/detect/detect.pl @@ -1140,6 +1140,7 @@ sub w83781d_isa_detect return if $chip == 0 and ($reg1 & 0xfe) != 0x10; return if $chip == 1 and $reg1 != 0x30; return if $chip == 2 and $reg1 != 0x40; + return 8; } # $_[0]: Chip to detect (0 = Revision 0x00, 1 = Revision 0x80) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index a1e50830..7b6b694f 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -1140,6 +1140,7 @@ sub w83781d_isa_detect return if $chip == 0 and ($reg1 & 0xfe) != 0x10; return if $chip == 1 and $reg1 != 0x30; return if $chip == 2 and $reg1 != 0x40; + return 8; } # $_[0]: Chip to detect (0 = Revision 0x00, 1 = Revision 0x80)