ASoC: samsung: make snd_soc_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 16 Aug 2017 16:59:29 +0000 (22:29 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 17 Aug 2017 17:09:39 +0000 (18:09 +0100)
Make these const as they are only stored in the ops field of a
snd_soc_dai_link structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/jive_wm8750.c
sound/soc/samsung/s3c24xx_simtec.c
sound/soc/samsung/s3c24xx_uda134x.c
sound/soc/samsung/smdk_spdif.c

index 7fcb51faa2a0e98803cbc8ac67cd370b7f2fd02b..529b10dc532b7bbc125ca893e1cffd3108db0938 100644 (file)
@@ -79,7 +79,7 @@ static int jive_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops jive_ops = {
+static const struct snd_soc_ops jive_ops = {
        .hw_params      = jive_hw_params,
 };
 
index dcc008d1e1ab1bd896665b2c1cec40c73e497199..6de63f3e37d55b892040d5a85415faa1f2401c4d 100644 (file)
@@ -211,7 +211,7 @@ static int simtec_call_startup(struct s3c24xx_audio_simtec_pdata *pd)
        return 0;
 }
 
-static struct snd_soc_ops simtec_snd_ops = {
+static const struct snd_soc_ops simtec_snd_ops = {
        .hw_params      = simtec_hw_params,
 };
 
index 55538e333cc8958463b86500afc39fc11f546037..c65c89d4aaa636f80c3f127e7a072a1f9dc58fbc 100644 (file)
@@ -199,7 +199,7 @@ static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops s3c24xx_uda134x_ops = {
+static const struct snd_soc_ops s3c24xx_uda134x_ops = {
        .startup = s3c24xx_uda134x_startup,
        .shutdown = s3c24xx_uda134x_shutdown,
        .hw_params = s3c24xx_uda134x_hw_params,
index a2f2363fe1c29d136434121377ccb5d3f4363f71..7fc7cc6d1530ef2e8c703f0229da988ecee29dc8 100644 (file)
@@ -144,7 +144,7 @@ static int smdk_hw_params(struct snd_pcm_substream *substream,
        return ret;
 }
 
-static struct snd_soc_ops smdk_spdif_ops = {
+static const struct snd_soc_ops smdk_spdif_ops = {
        .hw_params = smdk_hw_params,
 };