aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorHideki Iwamoto <h-iwamoto@kit.hi-ho.ne.jp>2005-09-25 10:56:43 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 17:02:07 -0400
commit332bf92b3338e140cbcfc25f69911e8ca59788c7 (patch)
treed6d8a3ee39fc08a3bc23b76c62403dbfe0fad36d /include/linux/i2c.h
parentd057c96cab72bc6b70570d25b90404f81d98e886 (diff)
[PATCH] i2c: Fix union i2c_smbus_data definition
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(-)
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 3d49a305bf88..17d63c1efdce 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -454,8 +454,7 @@ struct i2c_msg {
454union i2c_smbus_data { 454union i2c_smbus_data {
455 __u8 byte; 455 __u8 byte;
456 __u16 word; 456 __u16 word;
457 __u8 block[I2C_SMBUS_BLOCK_MAX + 3]; /* block[0] is used for length */ 457 __u8 block[I2C_SMBUS_BLOCK_MAX + 2]; /* block[0] is used for length */
458 /* one more for read length in block process call */
459 /* and one more for PEC */ 458 /* and one more for PEC */
460}; 459};
461 460