Skip to content

Commit 3d0e8b6

Browse files
javiercarrascocruzjbrun3t
authored andcommitted
clk: meson: s4: pll: Constify struct regmap_config
`clkc_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jerome Brunet <[email protected]>
1 parent 02cc1df commit 3d0e8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/meson/s4-pll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ static const struct reg_sequence s4_init_regs[] = {
799799
{ .reg = ANACTRL_MPLL_CTRL0, .def = 0x00000543 },
800800
};
801801

802-
static struct regmap_config clkc_regmap_config = {
802+
static const struct regmap_config clkc_regmap_config = {
803803
.reg_bits = 32,
804804
.val_bits = 32,
805805
.reg_stride = 4,

0 commit comments

Comments
 (0)