summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-06-17 15:03:19 +0200
committerMark Brown <broonie@kernel.org>2024-06-18 14:19:52 +0100
commit2fbafecb0f05818e25f6c926c6f9ad9ef597429c (patch)
tree0219ca8cb9f85f40457695ff1ef2e529ebdac9d0 /include/sound
parent195815c2755d70df92f46e6d737cd677db7adeef (diff)
downloadlwn-2fbafecb0f05818e25f6c926c6f9ad9ef597429c.tar.gz
lwn-2fbafecb0f05818e25f6c926c6f9ad9ef597429c.zip
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 <krzysztof.kozlowski@linaro.org> Link: https://msgid.link/r/20240617-n-asoc-const-auto-selectable-formats-v1-1-8004f346ee38@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc-dai.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index 15ef268c9845..e6c61c79c483 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;