Commit 9bc1e34a authored by Javier Carrasco's avatar Javier Carrasco Committed by Chen-Yu Tsai

soc: sunxi: sram: Constify struct regmap_config

`sunxi_sram_regmap_config` is not modified and can be declared as const
to move its data to a read-only section.
Signed-off-by: default avatarJavier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: default avatarAndre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20240705-sunxi-sram-const-regmap_config-v1-1-1b997cd65d0f@gmail.comSigned-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 3a6fb902
......@@ -344,7 +344,7 @@ static void sunxi_sram_unlock(void *_lock)
spin_unlock(lock);
}
static struct regmap_config sunxi_sram_regmap_config = {
static const struct regmap_config sunxi_sram_regmap_config = {
.reg_bits = 32,
.val_bits = 32,
.reg_stride = 4,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment