diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-06-17 15:57:35 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-17 20:29:02 +0300 |
commit | 595265c92668cbdbd9f299c49907734d468c12e9 (patch) | |
tree | aa4b15db506ff3353993c7e1c5e8c5737d2e28d5 /sound/soc/codecs/framer-codec.c | |
parent | d4a7d067e061c95c6387cf537258082074a4d299 (diff) | |
download | linux-595265c92668cbdbd9f299c49907734d468c12e9.tar.xz |
ASoC: Constify DAI ops auto_selectable_formats
The static arrays passed as 'auto_selectable_formats' are not modified
by the drivers nor by the core code, so make it const for code safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://msgid.link/r/20240617125735.582963-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/framer-codec.c')
-rw-r--r-- | sound/soc/codecs/framer-codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/framer-codec.c b/sound/soc/codecs/framer-codec.c index e5fcde9ee308..6f57a3aeecc8 100644 --- a/sound/soc/codecs/framer-codec.c +++ b/sound/soc/codecs/framer-codec.c @@ -238,7 +238,7 @@ static int framer_dai_startup(struct snd_pcm_substream *substream, return 0; } -static u64 framer_dai_formats[] = { +static const u64 framer_dai_formats[] = { SND_SOC_POSSIBLE_DAIFMT_DSP_B, }; |