2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Stupid ADM1021 detection bug fixed (thanks Mark!)

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@236 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1999-02-17 00:20:36 +00:00
parent ed83727f04
commit 6e404a91d9

View File

@@ -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";