ASoC: Constify of_phandle_args in snd_soc_dai_link_component

ASoC core code does not modify contents of 'of_phandle_args' in 'struct
snd_soc_dai_link_component', 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 <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240617-n-asoc-const-auto-selectable-formats-v1-2-8004f346ee38@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Krzysztof Kozlowski 2024-06-17 15:03:20 +02:00 committed by Mark Brown
parent 2fbafecb0f
commit 020b37d06f
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -675,7 +675,7 @@ struct snd_soc_dai_link_component {
const char *name; const char *name;
struct device_node *of_node; struct device_node *of_node;
const char *dai_name; const char *dai_name;
struct of_phandle_args *dai_args; const struct of_phandle_args *dai_args;
}; };
/* /*