From: Krzysztof Kozlowski Date: Mon, 17 Jun 2024 13:03:19 +0000 (+0200) Subject: ASoC: Constify of_phandle_args in snd_soc_dai_driver X-Git-Tag: v6.11-rc1~108^2~6^2~82^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2fbafecb0f05818e25f6c926c6f9ad9ef597429c;p=thirdparty%2Fkernel%2Flinux.git ASoC: Constify of_phandle_args in snd_soc_dai_driver ASoC core code does not modify contents of 'of_phandle_args' in 'struct snd_soc_dai_driver', so the pointer can be made as a pointer to const. This makes code safer, serves as clear annotation of core's intentions and allows putting pointed structures in rodata (if ever applicable). Signed-off-by: Krzysztof Kozlowski Link: https://msgid.link/r/20240617-n-asoc-const-auto-selectable-formats-v1-1-8004f346ee38@linaro.org Signed-off-by: Mark Brown --- diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 15ef268c98450..e6c61c79c4839 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -413,7 +413,7 @@ struct snd_soc_dai_driver { unsigned int id; unsigned int base; struct snd_soc_dobj dobj; - struct of_phandle_args *dai_args; + const struct of_phandle_args *dai_args; /* ops */ const struct snd_soc_dai_ops *ops;