mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
got rid of compile warnings.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@351 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c44effd7fa
commit
30acc6c169
1 file changed
+5
-8
@@ -334,20 +334,17 @@ int adm9240_attach_adapter(struct i2c_adapter *adapter)
|
||||
adapter, and check whether they are used here */
|
||||
|
||||
temp = smbus_read_byte_data(adapter,address,ADM9240_REG_COMPANY_ID);
|
||||
if (temp == 0x23) {
|
||||
if (temp == 0x23) {
|
||||
type_name = "adm9240";
|
||||
client_name = "ADM9240 chip";
|
||||
} else if (temp == 0xDA) {
|
||||
type_name = "ds1780";
|
||||
client_name = "DS1780 chip";
|
||||
}
|
||||
if (temp == 0x23 || temp == 0xDA) {
|
||||
temp=smbus_read_byte_data(adapter,address,ADM9240_REG_DIE_REV);
|
||||
printk("adm9240.o: %s detected with die rev.: 0x%X\n",
|
||||
client_name, temp);
|
||||
}
|
||||
else
|
||||
} else
|
||||
continue;
|
||||
temp=smbus_read_byte_data(adapter,address,ADM9240_REG_DIE_REV);
|
||||
printk("adm9240.o: %s detected with die rev.: 0x%X\n",
|
||||
client_name, temp);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user