bugfix: typo in dynamic VID alarms

also adds a couple log messages for failed transactions
patch by David Knierim <david_knierim@earthlink.net>


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2744 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark M. Hoffman committed 2004-10-22 04:26:45 +00:00
1 parent ef1168c6b6
commit f583bf7d8a
1 file changed
+4 -2
+4 -2
View File
@@ -382,6 +382,7 @@ static u8 lm93_read_byte(struct i2c_client *client, u8 reg)
}
/* <TODO> what to return in case of error? */
printk(KERN_ERR "lm93.o: All read byte retries failed!!\n");
return 0;
}
@@ -416,6 +417,7 @@ static u16 lm93_read_word(struct i2c_client *client, u8 reg)
}
/* <TODO> what to return in case of error? */
printk(KERN_ERR "lm93.o: All read word retries failed!!\n");
return 0;
}
@@ -849,12 +851,12 @@ static unsigned LM93_ALARMS_FROM_REG(struct block1_t b1)
result = b1.host_status_2 & 0x3f;
if (vccp_limit_type[0])
result |= (b1.host_status_1 & 0x10) << 2;
result |= (b1.host_status_4 & 0x10) << 2;
else
result |= b1.host_status_2 & 0x40;
if (vccp_limit_type[1])
result |= (b1.host_status_1 & 0x20) << 2;
result |= (b1.host_status_4 & 0x20) << 2;
else
result |= b1.host_status_2 & 0x80;