aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-01-10 11:06:15 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-13 17:45:21 -0500
commit13aec722f3c14aa6019c800465aa3ddd3638d305 (patch)
treec8efd6523260c0ccf75f3101df5d727e56a018b9 /include
parentfffc0ca29fdf3a786e74082c698c701d6ebdf720 (diff)
ASoC: Constify ops and compr_ops fields of snd_soc_dai_link
The core does not modify these fields, so they can be made const. This allows drivers to declare their op tables as const. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/soc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 769e27c774a3..bedf3dabdbd3 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -904,8 +904,8 @@ struct snd_soc_dai_link {
904 struct snd_pcm_hw_params *params); 904 struct snd_pcm_hw_params *params);
905 905
906 /* machine stream operations */ 906 /* machine stream operations */
907 struct snd_soc_ops *ops; 907 const struct snd_soc_ops *ops;
908 struct snd_soc_compr_ops *compr_ops; 908 const struct snd_soc_compr_ops *compr_ops;
909}; 909};
910 910
911struct snd_soc_codec_conf { 911struct snd_soc_codec_conf {