ASoC: constify of_phandle_args in snd_soc_get_dai_name()
authorKrzysztof Kozlowski <krzk@kernel.org>
Sun, 21 Feb 2021 15:30:24 +0000 (16:30 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:07:14 +0000 (13:07 +0000)
commit933f98be60a7b9c287acb081fb5d6659dd5e0441
tree7f662329a5262aabad8dd709a89efa5ae42c4693
parente92a309be437b761c6972502386ea717c6fed027
ASoC: constify of_phandle_args in snd_soc_get_dai_name()

The pointer to of_phandle_args passed to snd_soc_get_dai_name() and
of_xlate_dai_name() implementations is not modified.  Since it is being
used only to translate passed OF node to a DAI name, it should not be
modified, so mark it as const for correctness and safer code.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20210221153024.453583-1-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h
include/sound/soc.h
sound/soc/meson/aiu-acodec-ctrl.c
sound/soc/meson/aiu-codec-ctrl.c
sound/soc/meson/aiu.c
sound/soc/meson/aiu.h
sound/soc/qcom/lpass-cpu.c
sound/soc/qcom/qdsp6/q6afe-dai.c
sound/soc/soc-component.c
sound/soc/soc-core.c