summaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-abe-twl6040.c
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-03-18 19:34:11 +0530
committerMark Brown <broonie@kernel.org>2017-03-20 11:26:37 +0000
commit2261cf1ce63ff1ca01772542a41b57eaac286841 (patch)
tree8c92ded82dd869d069e294218588af9dd4247782 /sound/soc/omap/omap-abe-twl6040.c
parent8804e073a8b7b85e98e46a239da4d2d92adfe124 (diff)
downloadlinux-2261cf1ce63ff1ca01772542a41b57eaac286841.tar.gz
linux-2261cf1ce63ff1ca01772542a41b57eaac286841.tar.bz2
linux-2261cf1ce63ff1ca01772542a41b57eaac286841.zip
ASoC: omap: 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 arm architecture. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/omap/omap-abe-twl6040.c')
-rw-r--r--sound/soc/omap/omap-abe-twl6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c
index 89fe95e877db..614b18d2f631 100644
--- a/sound/soc/omap/omap-abe-twl6040.c
+++ b/sound/soc/omap/omap-abe-twl6040.c
@@ -70,7 +70,7 @@ static int omap_abe_hw_params(struct snd_pcm_substream *substream,
return ret;
}
-static struct snd_soc_ops omap_abe_ops = {
+static const struct snd_soc_ops omap_abe_ops = {
.hw_params = omap_abe_hw_params,
};