ASoC: Intel: make snd_soc_platform_driver const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 14 Aug 2017 11:38:41 +0000 (17:08 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:22:29 +0000 (17:22 +0100)
Make these const as they are only passed as the 2nd argument to the
function 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/intel/atom/sst-mfld-platform-pcm.c
sound/soc/intel/baytrail/sst-baytrail-pcm.c
sound/soc/intel/haswell/sst-haswell-pcm.c
sound/soc/intel/skylake/skl-pcm.c

index 49c7b88b5bdc83b8a87f2485b0515bc013c32459..b272df5ce0e8363c8d946b0becc226f6191a6efc 100644 (file)
@@ -705,7 +705,7 @@ static int sst_soc_probe(struct snd_soc_platform *platform)
        return sst_dsp_init_v2_dpcm(platform);
 }
 
-static struct snd_soc_platform_driver sst_soc_platform_drv  = {
+static const struct snd_soc_platform_driver sst_soc_platform_drv  = {
        .probe          = sst_soc_probe,
        .ops            = &sst_platform_ops,
        .compr_ops      = &sst_platform_compr_ops,
index 4765ad4745444b68929f4282271a6b5cdfe0a9be..84cb568c3ad68f603e3780150b1cd335b8770a18 100644 (file)
@@ -395,7 +395,7 @@ static int sst_byt_pcm_remove(struct snd_soc_platform *platform)
        return 0;
 }
 
-static struct snd_soc_platform_driver byt_soc_platform = {
+static const struct snd_soc_platform_driver byt_soc_platform = {
        .probe          = sst_byt_pcm_probe,
        .remove         = sst_byt_pcm_remove,
        .ops            = &sst_byt_pcm_ops,
index 9e4094e2c6e319a02aefecd039e68d5fd1465201..c044400540ec837689f0c6e19634c77eb3e2135c 100644 (file)
@@ -1135,7 +1135,7 @@ static int hsw_pcm_remove(struct snd_soc_platform *platform)
        return 0;
 }
 
-static struct snd_soc_platform_driver hsw_soc_platform = {
+static const struct snd_soc_platform_driver hsw_soc_platform = {
        .probe          = hsw_pcm_probe,
        .remove         = hsw_pcm_remove,
        .ops            = &hsw_pcm_ops,
index debdaac2c3a2d9750cb849a9fadd2e26506a1cb0..e98d8252a026b9d15dea5eeebfa8e63e97d24f3f 100644 (file)
@@ -1310,7 +1310,7 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
 
        return 0;
 }
-static struct snd_soc_platform_driver skl_platform_drv  = {
+static const struct snd_soc_platform_driver skl_platform_drv  = {
        .probe          = skl_platform_soc_probe,
        .ops            = &skl_platform_ops,
        .pcm_new        = skl_pcm_new,