ASoC: blackfin: constify snd_soc_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 22 Mar 2017 12:51:35 +0000 (18:21 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 24 Mar 2017 18:48:10 +0000 (18:48 +0000)
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>
sound/soc/blackfin/bfin-eval-adau1373.c
sound/soc/blackfin/bfin-eval-adav80x.c

index 72ac789884262bbdc41e63adfcabe1dee3911814..64b88fdc1f6cfc3af2bcc5500a70731c12d2f462 100644 (file)
@@ -119,7 +119,7 @@ static int bfin_eval_adau1373_codec_init(struct snd_soc_pcm_runtime *rtd)
 
        return ret;
 }
-static struct snd_soc_ops bfin_eval_adau1373_ops = {
+static const struct snd_soc_ops bfin_eval_adau1373_ops = {
        .hw_params = bfin_eval_adau1373_hw_params,
 };
 
index 1037477d10b2f962cf6d7ea13844d01539bdeafb..99e5ecabdcda3c23d8beef43bdca4ccd56b0e160 100644 (file)
@@ -64,7 +64,7 @@ static int bfin_eval_adav80x_codec_init(struct snd_soc_pcm_runtime *rtd)
        return 0;
 }
 
-static struct snd_soc_ops bfin_eval_adav80x_ops = {
+static const struct snd_soc_ops bfin_eval_adav80x_ops = {
        .hw_params = bfin_eval_adav80x_hw_params,
 };