i2c: riic: Introduce helper functions for I2C read/write operations
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 19 Mar 2024 13:25:01 +0000 (13:25 +0000)
committerAndi Shyti <andi.shyti@kernel.org>
Sun, 5 May 2024 22:35:38 +0000 (00:35 +0200)
commit26c7871100f2933a2827b217320366e89cef5a4c
tree65cf12049b6d23573a25b6ffa2f6fb73b9abd833
parentc1f39c62eb09fa2e692a9377295ecbd0740c0914
i2c: riic: Introduce helper functions for I2C read/write operations

Introduce helper functions for performing I2C read and write operations
in the RIIC driver.

These helper functions lay the groundwork for adding support for the
RZ/V2H SoC. This is essential because the register offsets for the RZ/V2H
SoC differ from those of the RZ/A SoC. By abstracting the read and write
operations, we can seamlessly adapt the driver to support different SoC
variants without extensive modifications.

This patch is part of the preparation process for integrating support for
the RZ/V2H SoC into the RIIC driver.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-riic.c