Small SMBUS read byte fix

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@481 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-06-15 15:01:36 +00:00
1 parent ffe3cb3324
commit 1ff91e0555
1 file changed
+3 -1
+3 -1
View File
@@ -124,9 +124,11 @@ s32 smbus_access_i2c(struct i2c_adapter * adapter, u8 addr, char read_write,
num = 1; /* Special case: The read/write field is used as data */
break;
case SMBUS_BYTE:
if (read_write == SMBUS_READ)
if (read_write == SMBUS_READ) {
/* Special case: only a read! */
msg[0].flags = I2C_M_RD;
num = 1;
}
break;
case SMBUS_BYTE_DATA:
if (read_write == SMBUS_READ)