diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-07-03 11:50:16 +0200 |
---|---|---|
committer | Jerome Brunet <jbrunet@baylibre.com> | 2024-07-10 14:25:49 +0200 |
commit | af3e4505e6bc1a011d2058ae6fff7a63e67e0868 (patch) | |
tree | 82fa33fbdc42567db83d0b34026558c438d1a8bd /drivers/clk | |
parent | 5c6ffe3537d55834dfd36f5649b637a5a9d27032 (diff) |
clk: meson: c3: peripherals: 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 <javier.carrasco.cruz@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240703-clk-const-regmap-v1-3-7d15a0671d6f@gmail.com
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/meson/c3-peripherals.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/meson/c3-peripherals.c b/drivers/clk/meson/c3-peripherals.c index 56b33d23c317..cfa573262bf1 100644 --- a/drivers/clk/meson/c3-peripherals.c +++ b/drivers/clk/meson/c3-peripherals.c @@ -2296,7 +2296,7 @@ static struct clk_regmap *const c3_periphs_clk_regmaps[] = { &vapb, }; -static struct regmap_config clkc_regmap_config = { +static const struct regmap_config clkc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, |