]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Constify channel mapping array arguments in set_channel_map()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 20 May 2024 14:19:56 +0000 (16:19 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:30:58 +0000 (01:30 +0100)
commit965cc040bf0698e81b0c0aef359ae650b42b428e
tree4cf14b17702ad838ab506eb2d2e8083cd9bb5065
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
ASoC: Constify channel mapping array arguments in set_channel_map()

There is no need for implementations of DAI set_channel_map() to modify
contents of passed arrays with actual channel mapping.  Additionally,
the caller keeps full ownership of the array.

Constify these pointer arguments so the code will be safer and easier to
read (documenting the caller's ownership).

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240520-asoc-x1e80100-4-channel-mapping-v4-1-f657159b4aad@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/cs35l41.h
include/sound/soc-dai.h
sound/soc/codecs/adau7118.c
sound/soc/codecs/cs35l41-lib.c
sound/soc/codecs/cs35l41.c
sound/soc/codecs/max98504.c
sound/soc/codecs/wcd9335.c
sound/soc/codecs/wcd934x.c
sound/soc/qcom/qdsp6/q6afe-dai.c
sound/soc/qcom/qdsp6/q6apm-lpass-dais.c
sound/soc/soc-dai.c