projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0271df0
)
ASoC: cs53l30: Constify struct regmap_config
author
Javier Carrasco
<javier.carrasco.cruz@gmail.com>
Wed, 3 Jul 2024 16:21:00 +0000
(18:21 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 3 Jul 2024 16:35:24 +0000
(17:35 +0100)
`cs53l30_regmap` 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>
Link:
https://patch.msgid.link/20240703-sound-const-regmap_config-v1-4-2e379b0446a7@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs53l30.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs53l30.c
b/sound/soc/codecs/cs53l30.c
index 2ee13d885fdc97c37eb96cc40b4aaeff1cf0f419..bcbaf28a0b2d98d1d3156e238ef74082a0296eb0 100644
(file)
--- a/
sound/soc/codecs/cs53l30.c
+++ b/
sound/soc/codecs/cs53l30.c
@@
-900,7
+900,7
@@
static const struct snd_soc_component_driver cs53l30_driver = {
.endianness = 1,
};
-static struct regmap_config cs53l30_regmap = {
+static
const
struct regmap_config cs53l30_regmap = {
.reg_bits = 8,
.val_bits = 8,