aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-07-03 18:21:01 +0200
committerMark Brown <[email protected]>2024-07-03 17:35:25 +0100
commit8d9c0ede48f29c9fccd095952d657fc5696da9ac (patch)
tree65ce5b5a9d6706a17f9923d76206d71798085c35
parent52f0aa5fb9437013f7f35d61426de497a8927891 (diff)
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
-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,