mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-13 17:00:15 +00:00
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:
1 parent
ffe3cb3324
commit
1ff91e0555
1 file changed
+3
-1
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user