From: Krzysztof Kozlowski Date: Mon, 17 Jun 2024 12:57:34 +0000 (+0200) Subject: ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats X-Git-Tag: v6.11-rc1~108^2~6^2~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4a7d067e061c95c6387cf537258082074a4d299;p=thirdparty%2Fkernel%2Flinux.git ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats 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 Signed-off-by: Krzysztof Kozlowski Link: https://msgid.link/r/20240617125735.582963-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown --- diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 15ef268c98450..279223c4ef5e3 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -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 */