]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: qcom: topology: Constify pointed topology and vendor structs
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Fri, 19 Dec 2025 11:45:44 +0000 (12:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 22 Dec 2025 09:01:50 +0000 (09:01 +0000)
commitc4be067a7b67f616b9ec85423a20be6be9b8ec37
tree11e1e4b2bea462297bf16cd0df2a62aa33ef8e21
parentdc8d1ba537c0bb4da91695b473dbe9a404f7ed7e
ASoC: qcom: topology: Constify pointed topology and vendor structs

Several functions in topology.c receive pointers to 'struct
snd_soc_tplg_vendor_array' and 'struct snd_soc_tplg_private', and do not
modify their contents.  Constify the pointers for self-explanatory code
(pointed memory is not modified by the function) and a bit safer code.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251219-b4-container-of-const-asoc-qcom-v2-1-05fd2ecc06fe@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/topology.c