ASoC: qcom: make snd_soc_platform_driver const

Make this const as it is only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Bhumika Goyal 2017-08-14 17:08:46 +05:30 committed by Mark Brown
parent 3a88a3757d
commit 50d50c33d2

View File

@ -557,7 +557,7 @@ static void lpass_platform_pcm_free(struct snd_pcm *pcm)
}
}
static struct snd_soc_platform_driver lpass_platform_driver = {
static const struct snd_soc_platform_driver lpass_platform_driver = {
.pcm_new = lpass_platform_pcm_new,
.pcm_free = lpass_platform_pcm_free,
.ops = &lpass_platform_pcm_ops,