summaryrefslogtreecommitdiffstats
path: root/sound/soc/pxa/zylonite.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-03-13 20:46:40 +0100
committerMark Brown <broonie@kernel.org>2017-03-15 14:34:16 +0100
commit943b73112dfdd6747871a3347f70de6876f4dd4b (patch)
tree54e60745b52efab45ed1a03483f4555a2d602367 /sound/soc/pxa/zylonite.c
parentASoC: pxa: Add space around '=' (diff)
downloadlinux-943b73112dfdd6747871a3347f70de6876f4dd4b.tar.xz
linux-943b73112dfdd6747871a3347f70de6876f4dd4b.zip
ASoC: pxa: 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 .o files did not compile for all the changed .c files. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa/zylonite.c')
-rw-r--r--sound/soc/pxa/zylonite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/pxa/zylonite.c b/sound/soc/pxa/zylonite.c
index 6fbcdf02c88d..ba468e560dd2 100644
--- a/sound/soc/pxa/zylonite.c
+++ b/sound/soc/pxa/zylonite.c
@@ -132,7 +132,7 @@ static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
return 0;
}
-static struct snd_soc_ops zylonite_voice_ops = {
+static const struct snd_soc_ops zylonite_voice_ops = {
.hw_params = zylonite_voice_hw_params,
};