Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reviewed-by: Andre 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: Chen-Yu Tsai <wens@csie.org>

authored by

Javier Carrasco and committed by
Chen-Yu Tsai
9bc1e34a 3a6fb902

+1 -1
+1 -1
drivers/soc/sunxi/sunxi_sram.c
··· 344 344 spin_unlock(lock); 345 345 } 346 346 347 - static struct regmap_config sunxi_sram_regmap_config = { 347 + static const struct regmap_config sunxi_sram_regmap_config = { 348 348 .reg_bits = 32, 349 349 .val_bits = 32, 350 350 .reg_stride = 4,