]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c-i801: Refactor use of LAST_BYTE in i801_block_transaction_byte_by_byte
authorDaniel Kurtz <djkurtz@chromium.org>
Tue, 24 Jul 2012 23:25:02 +0000 (09:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 24 Jul 2012 23:25:02 +0000 (09:25 +1000)
commit23abfe1a27c30fb76c8127cdab3603d95b214486
tree3c06e50d72a8c93d3e5d2fcf9371f4a24a98fe8b
parent351564b8691adafb904941c301bef11839274915
i2c-i801: Refactor use of LAST_BYTE in i801_block_transaction_byte_by_byte

As a slight optimization, pull some logic out of the polling loop during
byte-by-byte transactions by just setting the I801_LAST_BYTE bit, as
defined in the i801 (PCH) datasheet, when reading the last byte of a
byte-by-byte I2C_SMBUS_READ.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-i801.c