]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: omap: re-factor omap_i2c_init function
authorShubhrajyoti D <shubhrajyoti@ti.com>
Mon, 5 Nov 2012 12:23:40 +0000 (17:53 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Wed, 14 Nov 2012 16:44:41 +0000 (17:44 +0100)
commit95dd3032663fab5a56331b066baf1757cb941b1a
treed18fd97776d26ba07dde48759e7c41c2f9ab1000
parent2c88ab8c5af7d637d2a9d14b607fa6100fa64236
i2c: omap: re-factor omap_i2c_init function

re-factor omap_i2c_init() so that we can re-use it for resume.
While at it also remove the bufstate variable as we write it
in omap_i2c_resize_fifo for every transfer.

Reviewed-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