i2c: imx: wrap registers read/write to inline function
authorJingchang Lu <b35083@freescale.com>
Wed, 7 Aug 2013 09:05:39 +0000 (17:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Aug 2013 14:12:47 +0000 (16:12 +0200)
commit1d5ef2a83e3097408924b5eea8d7750bbde21e45
treecf5cac56d518145477e54175bd796f7569e32f23
parent0fc1347a7fdbcc25204f737998b824fc46662afd
i2c: imx: wrap registers read/write to inline function

wrap the readb(), writeb() into inline function calls.
It would make the driver more clearer to support platform
with different register offset.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c