Changeset 4002

Show
Ignore:
Timestamp:
09/24/05 11:38:17 (3 years ago)
Author:
khali
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/kernel/i2c.h

    r3999 r4002  
    461461        __u8 byte; 
    462462        __u16 word; 
    463         __u8 block[I2C_SMBUS_BLOCK_MAX + 3]; /* block[0] is used for length */ 
    464                           /* one more for read length in block process call */ 
     463        __u8 block[I2C_SMBUS_BLOCK_MAX + 2]; /* block[0] is used for length */ 
    465464                                                    /* and one more for PEC */ 
    466465};