From: Julia Lawall Date: Fri, 2 Nov 2018 15:00:18 +0000 (+0100) Subject: ASoC: smd845: constify snd_soc_ops structure X-Git-Tag: for-linus-20190104~133^2~7^2^2~211 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ff60005e4598ca9a79fa6d8378dd35a668ae4de7;p=linux-block.git ASoC: smd845: constify snd_soc_ops structure 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/qcom/sdm845.c b/sound/soc/qcom/sdm845.c index 9effbecc571f..8d0cdff64377 100644 --- a/sound/soc/qcom/sdm845.c +++ b/sound/soc/qcom/sdm845.c @@ -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,