]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 17 Jun 2024 12:57:34 +0000 (14:57 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 17 Jun 2024 17:29:01 +0000 (18:29 +0100)
The core ASoC code does not modify contents of the
'auto_selectable_formats' array passed in 'struct snd_soc_dai_ops', so
make it const for code safety.

Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240617125735.582963-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h

index 15ef268c98450a87fbed690b44263bb6d9e48f79..279223c4ef5e3576675b07c8971f83881c9cefd9 100644 (file)
@@ -361,7 +361,7 @@ struct snd_soc_dai_ops {
         * see
         *      snd_soc_dai_get_fmt()
         */
-       u64 *auto_selectable_formats;
+       const u64 *auto_selectable_formats;
        int num_auto_selectable_formats;
 
        /* probe ordering - for components with runtime dependencies */