Skip to content

Commit

Permalink
[PATCH] i2c: Fix union i2c_smbus_data definition
Browse files Browse the repository at this point in the history
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 <h-iwamoto@kit.hi-ho.ne.jp>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

 include/linux/i2c.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
  • Loading branch information
Hideki Iwamoto authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent d057c96 commit 332bf92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/linux/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ struct i2c_msg {
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 */
};

Expand Down

0 comments on commit 332bf92

Please sign in to comment.