(11/13) i2c: Fix union i2c_smbus_data
PATCH 1/1 (11/13) i2c: Fix union i2c_smbus_data
The i2c_smbus_data union block member has a comment stating that an extra byte is required for SMBus Block Process Call transactions. This has been true for three weeks around June 2002, but no more since, so it is about time that we drop this comment and fix the definition.
From: Hideki Iwamoto <[email protected]>
Signed-off-by Jean Delvare <[email protected]>
include/linux/i2c.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/i2c.h +1 -2
@@ -454,8 +454,7 @@union i2c_smbus_data {__u8 byte;__u16 word; -__u8 block[I2C_SMBUS_BLOCK_MAX +3 ];/* block[0] is used for length */ -/* one more for read length in block process call */ +__u8 block[I2C_SMBUS_BLOCK_MAX +2 ];/* block[0] is used for length */ /* and one more for PEC */ };
Signature · 1 line
Jean Delvare