ASoC: qcom: make snd_soc_platform_driver const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 14 Aug 2017 11:38:46 +0000 (17:08 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:20:22 +0000 (17:20 +0100)
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>
sound/soc/qcom/lpass-platform.c

index 7aabf08de3d4aeca35bc9e2b2a8297eb814d3c1d..fb3576af79117e0b91b0fe35ca174ed786f5e27f 100644 (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,