From: Jean Delvare Date: Tue, 13 Feb 2007 21:09:02 +0000 (+0100) Subject: i2c-amd8111: Proposed cleanups X-Git-Tag: v2.6.21-rc1~273^2~4^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b9e750e974febd9128fc622109c526a9d22c10;p=pandora-kernel.git i2c-amd8111: Proposed cleanups Proposed cleanups to the i2c-amd8111 SMBus driver: * Fold long lines. * Add an explicit mask when writing the low byte of a word. * Use I2C_SMBUS_BLOCK_MAX instead of hardcoding 32. * Discard extra blank lines. * Use boolean not instead of bitwise not for bit tests, it's clearer. * Return -EBUSY rather than -1 on I/O resource conflict. * Fix a race on device registration, initialization should be done before the bus is registered. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed