Skip to content

Commit b8ae9d3

Browse files
pbrkrgeertu
authored andcommitted
clk: renesas: r9a07g043: Mark mod_clks and resets arrays as const
The r9a07g043_mod_clks and r9a07g043_resets arrays describe the module clocks and reset signals (respectively) in this SoC and do not change at runtime. Signed-off-by: Paul Barker <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent c69fe2a commit b8ae9d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clk/renesas/r9a07g043-cpg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static const struct cpg_core_clk r9a07g043_core_clks[] __initconst = {
149149
#endif
150150
};
151151

152-
static struct rzg2l_mod_clk r9a07g043_mod_clks[] = {
152+
static const struct rzg2l_mod_clk r9a07g043_mod_clks[] = {
153153
#ifdef CONFIG_ARM64
154154
DEF_MOD("gic", R9A07G043_GIC600_GICCLK, R9A07G043_CLK_P1,
155155
0x514, 0),
@@ -282,7 +282,7 @@ static struct rzg2l_mod_clk r9a07g043_mod_clks[] = {
282282
0x5ac, 0),
283283
};
284284

285-
static struct rzg2l_reset r9a07g043_resets[] = {
285+
static const struct rzg2l_reset r9a07g043_resets[] = {
286286
#ifdef CONFIG_ARM64
287287
DEF_RST(R9A07G043_GIC600_GICRESET_N, 0x814, 0),
288288
DEF_RST(R9A07G043_GIC600_DBG_GICRESET_N, 0x814, 1),

0 commit comments

Comments
 (0)