summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-07-03 18:21:01 +0200
committerMark Brown <broonie@kernel.org>2024-07-03 18:35:25 +0200
commit8d9c0ede48f29c9fccd095952d657fc5696da9ac (patch)
tree65ce5b5a9d6706a17f9923d76206d71798085c35
parentASoC: cs53l30: Constify struct regmap_config (diff)
downloadlinux-8d9c0ede48f29c9fccd095952d657fc5696da9ac.tar.xz
linux-8d9c0ede48f29c9fccd095952d657fc5696da9ac.zip
ASoC: jz4760: Constify struct regmap_config
`jz4760_codec_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> Link: https://patch.msgid.link/20240703-sound-const-regmap_config-v1-5-2e379b0446a7@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/jz4760.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c
index 9df58e23d360..6217e611259f 100644
--- a/sound/soc/codecs/jz4760.c
+++ b/sound/soc/codecs/jz4760.c
@@ -821,7 +821,7 @@ static const u8 jz4760_codec_reg_defaults[] = {
0x1F, 0x00, 0x00, 0x00
};
-static struct regmap_config jz4760_codec_regmap_config = {
+static const struct regmap_config jz4760_codec_regmap_config = {
.reg_bits = 7,
.val_bits = 8,