1
0
Fork 0

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 <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
hifive-unleashed-5.1
Julia Lawall 2018-11-02 16:00:18 +01:00 committed by Mark Brown
parent 6b27e27729
commit ff60005e45
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0
1 changed files with 1 additions and 1 deletions

View 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,