]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-amd8111: Proposed cleanups
authorJean Delvare <khali@linux-fr.org>
Tue, 13 Feb 2007 21:09:02 +0000 (22:09 +0100)
committerJean Delvare <khali@arrakis.delvare>
Tue, 13 Feb 2007 21:09:02 +0000 (22:09 +0100)
commit1b42d9a33efccf8e5798a6781c063d9030cfdd5d
treee3d686081c427040e0ea75eade159bcaa673ef07
parentf010af12200aed0fbcc706ecef77a18ebc8370bd
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 <khali@linux-fr.org>
drivers/i2c/busses/i2c-amd8111.c