remove broken SW PEC support for read_byte
PATCH 1/1 remove broken SW PEC support for read_byte
Index: TODO
=================================RCS file: /home/cvs/i2c/TODO,v retrieving revision 1.20
TODO +1 -1
@@ -14,7 +14,7 @@ * SMBus 2.0 Completion SMBus 2.0 adds PEC, ARP, and a block process call message. All is complete in release 2.6.4 except for: - - SW PEC for Word Data and Process Call. No place to put PEC + - SW PEC for Read Byte, Word Data and Process Call. No place to put PEC in the current i2c_smbus_data structure. For a summary of SMBus protocol support, see http://www2.lm-sensors.nu/~lm78/protocol.html
Index: kernel/i2c-core.c
=================================RCS file: /home/cvs/i2c/kernel/i2c-core.c,v retrieving revision 1.110
i2c-core.c +0 -5
@@ -1002,11 +1002,6 @@ buf[1 ] = command;switch (size) { -case I2C_SMBUS_BYTE_DATA : - buf[0 ] = (addr <<1 ) |1 ; - cpec =i2c_smbus_pec (2 , buf,NULL ); - rpec = data->byte; -break ;case I2C_SMBUS_WORD_DATA : buf[0 ] = (addr <<1 ) |1 ; buf[2 ] = data->word &0xff ;
----
Hideki IWAMOTO [email protected]