From 746250b30ae8aa6579347d192925f7751ee60cd0 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Tue, 22 Jun 1999 22:09:09 +0000 Subject: [PATCH] Detection bug for ADM9240 solved git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@492 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/adm9240.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/chips/adm9240.c b/kernel/chips/adm9240.c index 1b984f27..6b07b345 100644 --- a/kernel/chips/adm9240.c +++ b/kernel/chips/adm9240.c @@ -370,7 +370,7 @@ static int adm9240_detect(struct i2c_adapter *adapter, int address, int kind) /* Now, we do the remaining detection. */ if (kind < 0) { - if (((adm9240_read_value(new_client,ADM9240_REG_CONFIG) & 0x80) != 0x80) || + if (((adm9240_read_value(new_client,ADM9240_REG_CONFIG) & 0x80) != 0x00) || (adm9240_read_value(new_client,ADM9240_REG_I2C_ADDR) != address)) goto ERROR1; }