From b7ade0b9263c9da6a4a45585a2531a261612447b Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Wed, 4 Apr 2001 23:12:34 +0000 Subject: [PATCH] fix bug in lm84 and gl523sm support; driver would recognize the chip and then return an error code anyway. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1058 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + kernel/chips/adm1021.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/CHANGES b/CHANGES index 2939e27a..d20919d1 100644 --- a/CHANGES +++ b/CHANGES @@ -34,6 +34,7 @@ ask CVS about it: Include file sensors.h: Most contents moved to i2c-proc.h in i2c package Library: Fix/standardize some lm87 and mtp008 entries Chip Modules (all ISA): Remove #include "i2c-isa.h" + Module adm1021: Fix lm84 and gl523sm support Module i2c-i801: Chip detection cleanup Module i2c-i810: Fixed i2c_i810_init() not found in patched kernel Module lm78: Recognize chipid=0x20 diff --git a/kernel/chips/adm1021.c b/kernel/chips/adm1021.c index 9e4a6de8..9d6dac2e 100644 --- a/kernel/chips/adm1021.c +++ b/kernel/chips/adm1021.c @@ -296,6 +296,12 @@ static int adm1021_detect(struct i2c_adapter *adapter, int address, } else if (kind == thmc10) { type_name = "thmc10"; client_name = "THMC10 chip"; + } else if (kind == lm84) { + type_name = "lm84"; + client_name = "LM84 chip"; + } else if (kind == gl523sm) { + type_name = "gl523sm"; + client_name = "GL523SM chip"; } else { #ifdef DEBUG printk("adm1021.o: Internal error: unknown kind (%d)?!?",