mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-28 16:52:18 +00:00
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>
This commit is contained in:
parent
3a6fb9025c
commit
9bc1e34a7b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user