From: Daniel Kurtz Date: Tue, 24 Jul 2012 12:13:57 +0000 (+0200) Subject: i2c-i801: Refactor use of LAST_BYTE in i801_block_transaction_byte_by_byte X-Git-Tag: v3.6-rc1~116^2~12 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efa3cb15ad8ba40bd08b05df87ef0ca6680ef762;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed