summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/wm1133-ev1.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-03-13 22:12:22 +0300
committerMark Brown <broonie@kernel.org>2017-03-15 16:34:32 +0300
commit5ace37bd7947e28dec5559a57ddc6e1d997dbec5 (patch)
tree6bd71d30ec308d8034ab78ab38614f9164efd0c1 /sound/soc/fsl/wm1133-ev1.c
parentcb7d53b499f95febd4b5bc80a473706c717d5d2c (diff)
downloadlinux-5ace37bd7947e28dec5559a57ddc6e1d997dbec5.tar.xz
ASoC: fsl: 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. The following .o files did not compile: sound/soc/fsl/{p1022_rdk.c/p1022_ds.c/mpc8610_hpcd.c} Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/wm1133-ev1.c')
-rw-r--r--sound/soc/fsl/wm1133-ev1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/wm1133-ev1.c b/sound/soc/fsl/wm1133-ev1.c
index b454972dce35..cdaf16367b47 100644
--- a/sound/soc/fsl/wm1133-ev1.c
+++ b/sound/soc/fsl/wm1133-ev1.c
@@ -139,7 +139,7 @@ static int wm1133_ev1_hw_params(struct snd_pcm_substream *substream,
return 0;
}
-static struct snd_soc_ops wm1133_ev1_ops = {
+static const struct snd_soc_ops wm1133_ev1_ops = {
.hw_params = wm1133_ev1_hw_params,
};