未验证 提交 ff60005e 编写于 作者: J Julia Lawall 提交者: Mark Brown

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 6b27e277
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册