From 812f463a20e4ff7eceed2bef3884a7d025ec6fa9 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Sun, 13 Dec 1998 02:21:37 +0000 Subject: [PATCH] Added temporary Winbond detection code IF the Winbond docs are right this time, a Winbond should now be recognized; a warning is printed, and it is treated as a LM79. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@70 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm78.c | 5 +++++ src/lm78.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/kernel/chips/lm78.c b/kernel/chips/lm78.c index 8eac0c0b..27b21a9c 100644 --- a/kernel/chips/lm78.c +++ b/kernel/chips/lm78.c @@ -346,6 +346,11 @@ int lm78_detect_isa(struct isa_adapter *adapter) type = lm79; type_name = "lm79"; client_name = "LM79 chip"; + } else if (err == 0x02) { + printk("lm78.o: Warning: Winbond W83781D detected (treated as a LM79)\n"); + type = lm79; + type_name = "lm79"; + client_name = "LM79 chip"; } else { #ifdef DEBUG printk("lm78.o: warning: probed non-lm78 chip?!? (%x)\n",err); diff --git a/src/lm78.c b/src/lm78.c index 8eac0c0b..27b21a9c 100644 --- a/src/lm78.c +++ b/src/lm78.c @@ -346,6 +346,11 @@ int lm78_detect_isa(struct isa_adapter *adapter) type = lm79; type_name = "lm79"; client_name = "LM79 chip"; + } else if (err == 0x02) { + printk("lm78.o: Warning: Winbond W83781D detected (treated as a LM79)\n"); + type = lm79; + type_name = "lm79"; + client_name = "LM79 chip"; } else { #ifdef DEBUG printk("lm78.o: warning: probed non-lm78 chip?!? (%x)\n",err);