ASoC: smd845: constify snd_soc_ops structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 2 Nov 2018 15:00:18 +0000 (16:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 10:37:30 +0000 (10:37 +0000)
The snd_soc_ops structure can be const as it is only stored in the
ops field of a snd_soc_dai_link structure and this field is const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/sdm845.c

index 9effbecc571f6b319812a301aba7777f34c17fa0..8d0cdff64377980e8ac15da1031c1b5add15ec68 100644 (file)
@@ -171,7 +171,7 @@ static void  sdm845_snd_shutdown(struct snd_pcm_substream *substream)
        }
 }
 
-static struct snd_soc_ops sdm845_be_ops = {
+static const struct snd_soc_ops sdm845_be_ops = {
        .hw_params = sdm845_snd_hw_params,
        .startup = sdm845_snd_startup,
        .shutdown = sdm845_snd_shutdown,