From 6e404a91d91e41888aaaac4647e8f53695f246a7 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Wed, 17 Feb 1999 00:20:36 +0000 Subject: [PATCH] Stupid ADM1021 detection bug fixed (thanks Mark!) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@236 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/adm1021.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/chips/adm1021.c b/kernel/chips/adm1021.c index 5f954cea..9e4ea667 100644 --- a/kernel/chips/adm1021.c +++ b/kernel/chips/adm1021.c @@ -174,7 +174,7 @@ int adm1021_attach_adapter(struct i2c_adapter *adapter) /* Verify device is 1021 by checked special DEVICE_ID register (I wish all SMBus chips had this..) */ /* The MAX1617 does not have it, regrettably. */ - if (smbus_read_byte_data(adapter,address,adm1021_REG_DEVICE_ID) != 0x41){ + if (smbus_read_byte_data(adapter,address,adm1021_REG_DEVICE_ID) == 0x41){ type = adm1021; type_name = "adm1021"; client_name = "ADM1021 chip";