From 739986c1dbae6ac66fde883a4028bf975c6e00f3 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sat, 24 Sep 2005 09:40:14 +0000 Subject: [PATCH] The i2c_smbus_data union block member has a comment stating that an extra byte is required for block process call SMBus 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. Spotted by Hideki Iwamoto. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3100 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/include/i2c-dev.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/include/i2c-dev.h b/kernel/include/i2c-dev.h index 1e25555a..3657001b 100644 --- a/kernel/include/i2c-dev.h +++ b/kernel/include/i2c-dev.h @@ -118,8 +118,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 */ };