Winbond-over-SMBus addition

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@74 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-13 14:03:28 +00:00
1 parent 0a56e24ec7
commit 2ae7fe9deb
2 files changed
+12 -2

No files matched your search

+6 -1
View File
@@ -448,7 +448,7 @@ int lm78_detect_smbus(struct i2c_adapter *adapter)
/* Later on, we will keep a list of registered addresses for each
adapter, and check whether they are used here */
if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff)
if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) < 0)
continue;
/* Real detection code goes here */
@@ -467,6 +467,11 @@ int lm78_detect_smbus(struct i2c_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);