Changeset 4003

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

Fix logic error in write word transaction with software PEC.
Patch from Hideki Iwamoto.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c/trunk/kernel/i2c-core.c

    r3993 r4003  
    980980                case I2C_SMBUS_BYTE_DATA: 
    981981                        buf[2] = data->byte; 
    982                         data->word = buf[2] || 
     982                        data->word = buf[2] | 
    983983                                    (i2c_smbus_pec(3, buf, NULL) << 8); 
    984984                        size = I2C_SMBUS_WORD_DATA;