diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2018-11-02 16:00:18 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-05 11:37:30 +0100 |
commit | ff60005e4598ca9a79fa6d8378dd35a668ae4de7 (patch) | |
tree | 5b1e4c5a38ed81a65ea9042eb847927be1e509b1 /sound | |
parent | ASoC: stm32: sai: fix less than zero comparison on unsigned int (diff) | |
download | linux-ff60005e4598ca9a79fa6d8378dd35a668ae4de7.tar.xz linux-ff60005e4598ca9a79fa6d8378dd35a668ae4de7.zip |
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/qcom/sdm845.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |