From: Felipe Balbi Date: Wed, 12 Sep 2012 10:58:00 +0000 (+0530) Subject: i2c: omap: split out [XR]DR and [XR]RDY X-Git-Tag: v3.7-rc1~50^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d9939f651419a63e091105663821f9c7d3fec37;p=pandora-kernel.git 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 Signed-off-by: Shubhrajyoti D Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed