summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98388.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2025-05-28 21:59:55 +0200
committerMark Brown <broonie@kernel.org>2025-06-08 23:30:30 +0100
commit0045b902ad27f2676c2a5b6444494a8287b80072 (patch)
tree02081dbdf710e46ce8bbb780fba177e445a18556 /sound/soc/codecs/max98388.c
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff)
ASoC: codecs: Constify regmap configuration static variables
Static arrays/structs for regmap configuration like 'struct reg_default', 'struct reg_sequence' and others are not modified so can be changed to const for more safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20250528-asoc-const-unused-v1-1-19a5d07b9d5c@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98388.c')
-rw-r--r--sound/soc/codecs/max98388.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max98388.c b/sound/soc/codecs/max98388.c
index 99986090b4a6..076f15a9867e 100644
--- a/sound/soc/codecs/max98388.c
+++ b/sound/soc/codecs/max98388.c
@@ -18,7 +18,7 @@
#include <sound/tlv.h>
#include "max98388.h"
-static struct reg_default max98388_reg[] = {
+static const struct reg_default max98388_reg[] = {
{MAX98388_R2000_SW_RESET, 0x00},
{MAX98388_R2001_INT_RAW1, 0x00},
{MAX98388_R2002_INT_RAW2, 0x00},