memory: renesas-rpc-if: Pass device instead of rpcif to rpcif_*()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 23 Nov 2022 14:41:21 +0000 (15:41 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 23 Jan 2023 10:48:00 +0000 (11:48 +0100)
commita198fcd1d53cbaf616d94822921c77910b94edb7
tree7073cb57b86517883709784d556cf4c27caff8fb
parentbb0b025d72d22b8617df920b61f5ae1e23d1b593
memory: renesas-rpc-if: Pass device instead of rpcif to rpcif_*()

Most rpcif_*() API functions do not need access to any other fields in
the rpcif structure than the device pointer.  Simplify dependencies by
passing the device pointer instead.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Link: https://lore.kernel.org/r/0460fe82ba348cedec7a9a75a8eff762c50e817b.1669213027.git.geert+renesas@glider.be
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/renesas-rpc-if.c
drivers/mtd/hyperbus/rpc-if.c
drivers/spi/spi-rpc-if.c
include/memory/renesas-rpc-if.h