i2c: iproc: use wrapper for read/write access
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Wed, 3 Apr 2019 01:18:27 +0000 (18:18 -0700)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 3 Apr 2019 20:36:03 +0000 (22:36 +0200)
commita9f0a81ef88bc58af4e1af911e0f9306090b6082
tree64a0624db1ff3c44f7c173020ff32b68a2f78001
parent3f98ad45e585c0019327a6547f9bf8e36423ec18
i2c: iproc: use wrapper for read/write access

Use the following wrapper for read/write access of iProc i2c registers:
u32 iproc_i2c_rd_reg(struct bcm_iproc_i2c_dev *iproc_i2c,
                     u32 offset)
void iproc_i2c_wr_reg(struct bcm_iproc_i2c_dev *iproc_i2c, u32 offset,
                      u32 val)

This preps the driver for support of indirect register access required
by certain SoCs with this iProc I2C block integrated

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-bcm-iproc.c