aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-03-22 08:51:35 -0400
committerMark Brown <broonie@kernel.org>2017-03-24 14:48:10 -0400
commit381ca1d12e188f90ed9f36cebb4a62d46fb11274 (patch)
treed0f29a5eb28f2d2bef61a6e53eec7f993116b442
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: blackfin: constify snd_soc_ops structures
Declare snd_soc_ops structures as const as they are only stored in the ops field of a snd_soc_dai_link structure. This field is of type const, so snd_soc_ops structures having this property can be made const too. Cross compiled the .o files for blackfin architecture. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/blackfin/bfin-eval-adau1373.c2
-rw-r--r--sound/soc/blackfin/bfin-eval-adav80x.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/blackfin/bfin-eval-adau1373.c b/sound/soc/blackfin/bfin-eval-adau1373.c
index 72ac78988426..64b88fdc1f6c 100644
--- a/sound/soc/blackfin/bfin-eval-adau1373.c
+++ b/sound/soc/blackfin/bfin-eval-adau1373.c
@@ -119,7 +119,7 @@ static int bfin_eval_adau1373_codec_init(struct snd_soc_pcm_runtime *rtd)
119 119
120 return ret; 120 return ret;
121} 121}
122static struct snd_soc_ops bfin_eval_adau1373_ops = { 122static const struct snd_soc_ops bfin_eval_adau1373_ops = {
123 .hw_params = bfin_eval_adau1373_hw_params, 123 .hw_params = bfin_eval_adau1373_hw_params,
124}; 124};
125 125
diff --git a/sound/soc/blackfin/bfin-eval-adav80x.c b/sound/soc/blackfin/bfin-eval-adav80x.c
index 1037477d10b2..99e5ecabdcda 100644
--- a/sound/soc/blackfin/bfin-eval-adav80x.c
+++ b/sound/soc/blackfin/bfin-eval-adav80x.c
@@ -64,7 +64,7 @@ static int bfin_eval_adav80x_codec_init(struct snd_soc_pcm_runtime *rtd)
64 return 0; 64 return 0;
65} 65}
66 66
67static struct snd_soc_ops bfin_eval_adav80x_ops = { 67static const struct snd_soc_ops bfin_eval_adav80x_ops = {
68 .hw_params = bfin_eval_adav80x_hw_params, 68 .hw_params = bfin_eval_adav80x_hw_params,
69}; 69};
70 70