]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-designware: Initialize byte count variables just prior to being used
authorShinya Kuribayashi <shinya.kuribayashi@necel.com>
Fri, 6 Nov 2009 12:49:39 +0000 (21:49 +0900)
committerBen Dooks <ben-linux@fluff.org>
Wed, 9 Dec 2009 00:19:11 +0000 (00:19 +0000)
commite5abcf31be9208c6d2a471f23a62be61791367f4
treee08e9e5d81fbbec97d2c6b47a09c1e7bf4be24b5
parent4f40c45d80af9fcb3d9df8d0dcb8c9c87397cc0b
i2c-designware: Initialize byte count variables just prior to being used

As the driver and hardware always process the given data in parallel,
then it would be better to initialize tx_limit, rx_limit and rx_valid
variables just prior to being used.

This will help us to send / receive as much data as possible.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-designware.c