]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Constify of_phandle_args in snd_soc_dai_driver
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 17 Jun 2024 13:03:19 +0000 (15:03 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jun 2024 13:19:52 +0000 (14:19 +0100)
commit2fbafecb0f05818e25f6c926c6f9ad9ef597429c
tree0219ca8cb9f85f40457695ff1ef2e529ebdac9d0
parent195815c2755d70df92f46e6d737cd677db7adeef
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>
include/sound/soc-dai.h