mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
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
This commit is contained in:
1 parent
400bdd4c14
commit
739986c1db
1 file changed
+1
-2
@@ -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 */
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user