Skip to content

Commit 9bc1e34

Browse files
javiercarrascocruzwens
authored andcommitted
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 <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Link: https://lore.kernel.org/r/20240705-sunxi-sram-const-regmap_config-v1-1-1b997cd65d0f@gmail.com Signed-off-by: Chen-Yu Tsai <[email protected]>
1 parent 3a6fb90 commit 9bc1e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/sunxi/sunxi_sram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static void sunxi_sram_unlock(void *_lock)
344344
spin_unlock(lock);
345345
}
346346

347-
static struct regmap_config sunxi_sram_regmap_config = {
347+
static const struct regmap_config sunxi_sram_regmap_config = {
348348
.reg_bits = 32,
349349
.val_bits = 32,
350350
.reg_stride = 4,

0 commit comments

Comments
 (0)