]> git.baikalelectronics.ru Git - kernel.git/commit
i2c/tsl2550: Speed up initialization
authorJean Delvare <khali@linux-fr.org>
Thu, 12 Jul 2007 12:12:31 +0000 (14:12 +0200)
committerJean Delvare <khali@hyperion.delvare>
Thu, 12 Jul 2007 12:12:31 +0000 (14:12 +0200)
commit1038cacedf8fc79bf09c7b568c5bb2ebaf117b80
tree8eb4fe324010c0bcd11e590334c69c224ad034ad
parenta8b057c62712eeb3fbc360fb5defaa828ecfaed8
i2c/tsl2550: Speed up initialization

There's some redundancy in the tsl2550 initialization sequence. It is
powering up the device twice, and setting the operating mode twice
too. Setting things just once saves SMBus transactions, which aren't
always cheap, speeding up the device initialization.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Rodolfo Giometti <giometti@linux.it>
drivers/i2c/chips/tsl2550.c