]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: omap: split out [XR]DR and [XR]RDY
authorFelipe Balbi <balbi@ti.com>
Wed, 12 Sep 2012 10:58:00 +0000 (16:28 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 12 Sep 2012 13:02:21 +0000 (15:02 +0200)
commit03ea084ea9dede7a14965b0b568337182942bd11
tree3055c4a8aaab04f63b87bed2dde7f37c35daf16c
parent835e47181708b0a52b18fee311fc9faf8e910026
i2c: omap: split out [XR]DR and [XR]RDY

While they do pretty much the same thing, there
are a few peculiarities. Specially WRT erratas,
it's best to split those out and re-factor the
read/write loop to another function which both
cases call.

This last part will be done on another patch.

While at that, also avoid an unncessary register
read since dev->fifo_len will always contain the
correct amount of data to be transferred.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-omap.c