memory: renesas-rpc-if: Simplify single/double data register access
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 13 Apr 2022 13:49:21 +0000 (15:49 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 14 Apr 2022 07:43:59 +0000 (09:43 +0200)
commit1f26a60b55aa654c73b5b9eb9eab8a7d687d429d
tree88e5b04de11f6fe8f788d8f26d6f1316f6303320
parent8f0e3af81711bf72b9c6138b0138bdc330d8c388
memory: renesas-rpc-if: Simplify single/double data register access

For manual write and read, factor out the common access to the first
data register by keeping track of the current data pointer.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/c3b2a8d1a69f1b1e8d1a460148406cfb83e52eb4.1649857740.git.geert+renesas@glider.be
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/renesas-rpc-if.c