]> Git Repo - J-linux.git/commitdiff
ASoC: SOF: mediatek: mt8195: Constify snd_sof_dsp_ops
authorKrzysztof Kozlowski <[email protected]>
Fri, 26 Apr 2024 09:04:01 +0000 (11:04 +0200)
committerMark Brown <[email protected]>
Mon, 29 Apr 2024 15:16:58 +0000 (00:16 +0900)
'struct snd_sof_dsp_ops' is not modified by core code, so it can be made
const for increased code safety.

Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Tested-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/sof/mediatek/mt8195/mt8195.c

index 8ee7ee246344cf6663baf1ae47782b7b1aa845a2..fc1c016104aee329d32433d03e19355e0541f2e6 100644 (file)
@@ -505,7 +505,7 @@ static struct snd_soc_dai_driver mt8195_dai[] = {
 };
 
 /* mt8195 ops */
-static struct snd_sof_dsp_ops sof_mt8195_ops = {
+static const struct snd_sof_dsp_ops sof_mt8195_ops = {
        /* probe and remove */
        .probe          = mt8195_dsp_probe,
        .remove         = mt8195_dsp_remove,
This page took 0.058989 seconds and 4 git commands to generate.