projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a6fb90
)
soc: sunxi: sram: Constify struct regmap_config
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Fri, 5 Jul 2024 10:52:27 +0000
(12:52 +0200)
committer
Chen-Yu Tsai
<wens@csie.org>
Wed, 10 Jul 2024 16:47:13 +0000
(
00:47
+0800)
`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>
drivers/soc/sunxi/sunxi_sram.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/soc/sunxi/sunxi_sram.c
b/drivers/soc/sunxi/sunxi_sram.c
index 71cc377b5e2439ad9d81090adc8bff7b62d6dbe0..2781a091a6a64f1d78801c247a779cc02baa4e50 100644
(file)
--- a/
drivers/soc/sunxi/sunxi_sram.c
+++ b/
drivers/soc/sunxi/sunxi_sram.c
@@
-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,