Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

memory: renesas-rpc-if: Move rpcif_info definitions near to the user

Move rpcif_info definitions near to the user.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250401143537.224047-6-biju.das.jz@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Biju Das and committed by
Krzysztof Kozlowski
74c35c84 bf657e23

+20 -20
+20 -20
drivers/memory/renesas-rpc-if.c
··· 191 191 u32 ddr; /* DRDRENR or SMDRENR */ 192 192 }; 193 193 194 - static const struct rpcif_info rpcif_info_r8a7796 = { 195 - .type = RPCIF_RCAR_GEN3, 196 - .strtim = 6, 197 - }; 198 - 199 - static const struct rpcif_info rpcif_info_gen3 = { 200 - .type = RPCIF_RCAR_GEN3, 201 - .strtim = 7, 202 - }; 203 - 204 - static const struct rpcif_info rpcif_info_rz_g2l = { 205 - .type = RPCIF_RZ_G2L, 206 - .strtim = 7, 207 - }; 208 - 209 - static const struct rpcif_info rpcif_info_gen4 = { 210 - .type = RPCIF_RCAR_GEN4, 211 - .strtim = 15, 212 - }; 213 - 214 194 /* 215 195 * Custom accessor functions to ensure SM[RW]DR[01] are always accessed with 216 196 * proper width. Requires rpcif_priv.xfer_size to be correctly set before! ··· 763 783 764 784 platform_device_unregister(rpc->vdev); 765 785 } 786 + 787 + static const struct rpcif_info rpcif_info_r8a7796 = { 788 + .type = RPCIF_RCAR_GEN3, 789 + .strtim = 6, 790 + }; 791 + 792 + static const struct rpcif_info rpcif_info_gen3 = { 793 + .type = RPCIF_RCAR_GEN3, 794 + .strtim = 7, 795 + }; 796 + 797 + static const struct rpcif_info rpcif_info_rz_g2l = { 798 + .type = RPCIF_RZ_G2L, 799 + .strtim = 7, 800 + }; 801 + 802 + static const struct rpcif_info rpcif_info_gen4 = { 803 + .type = RPCIF_RCAR_GEN4, 804 + .strtim = 15, 805 + }; 766 806 767 807 static const struct of_device_id rpcif_of_match[] = { 768 808 { .compatible = "renesas,r8a7796-rpc-if", .data = &rpcif_info_r8a7796 },