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

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.com


Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
parent 3a6fb902
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,