From: Javier Carrasco Date: Wed, 3 Jul 2024 09:50:14 +0000 (+0200) Subject: clk: meson: a1: peripherals: Constify struct regmap_config X-Git-Tag: v6.12-rc1~83^2~2^2^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4a7665b885b6e972cf653e4a49d16a408a9cbd8b;p=thirdparty%2Flinux.git clk: meson: a1: peripherals: Constify struct regmap_config `a1_periphs_regmap_cfg` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Neil Armstrong Link: https://lore.kernel.org/r/20240703-clk-const-regmap-v1-1-7d15a0671d6f@gmail.com Signed-off-by: Jerome Brunet --- diff --git a/drivers/clk/meson/a1-peripherals.c b/drivers/clk/meson/a1-peripherals.c index 99b5bc4504461..728ad13924ad0 100644 --- a/drivers/clk/meson/a1-peripherals.c +++ b/drivers/clk/meson/a1-peripherals.c @@ -2183,7 +2183,7 @@ static struct clk_regmap *const a1_periphs_regmaps[] = { &dmc_sel2, }; -static struct regmap_config a1_periphs_regmap_cfg = { +static const struct regmap_config a1_periphs_regmap_cfg = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,