Skip to content

Commit 74c35c8

Browse files
bijudaskrzk
authored andcommitted
memory: renesas-rpc-if: Move rpcif_info definitions near to the user
Move rpcif_info definitions near to the user. Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Biju Das <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent bf657e2 commit 74c35c8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

drivers/memory/renesas-rpc-if.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -191,26 +191,6 @@ struct rpcif_priv {
191191
u32 ddr; /* DRDRENR or SMDRENR */
192192
};
193193

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-
214194
/*
215195
* Custom accessor functions to ensure SM[RW]DR[01] are always accessed with
216196
* proper width. Requires rpcif_priv.xfer_size to be correctly set before!
@@ -784,6 +764,26 @@ static void rpcif_remove(struct platform_device *pdev)
784764
platform_device_unregister(rpc->vdev);
785765
}
786766

767+
static const struct rpcif_info rpcif_info_r8a7796 = {
768+
.type = RPCIF_RCAR_GEN3,
769+
.strtim = 6,
770+
};
771+
772+
static const struct rpcif_info rpcif_info_gen3 = {
773+
.type = RPCIF_RCAR_GEN3,
774+
.strtim = 7,
775+
};
776+
777+
static const struct rpcif_info rpcif_info_rz_g2l = {
778+
.type = RPCIF_RZ_G2L,
779+
.strtim = 7,
780+
};
781+
782+
static const struct rpcif_info rpcif_info_gen4 = {
783+
.type = RPCIF_RCAR_GEN4,
784+
.strtim = 15,
785+
};
786+
787787
static const struct of_device_id rpcif_of_match[] = {
788788
{ .compatible = "renesas,r8a7796-rpc-if", .data = &rpcif_info_r8a7796 },
789789
{ .compatible = "renesas,rcar-gen3-rpc-if", .data = &rpcif_info_gen3 },

0 commit comments

Comments
 (0)