]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: meson: a1: peripherals: Constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Wed, 3 Jul 2024 09:50:14 +0000 (11:50 +0200)
committerJerome Brunet <jbrunet@baylibre.com>
Wed, 10 Jul 2024 12:25:49 +0000 (14:25 +0200)
`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 <javier.carrasco.cruz@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240703-clk-const-regmap-v1-1-7d15a0671d6f@gmail.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/clk/meson/a1-peripherals.c

index 99b5bc4504461e3b016fa00d7a61bdb0660fe489..728ad13924ad09ac173f745ba0f947122d3adfd6 100644 (file)
@@ -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,