diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-01-10 11:06:15 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-13 17:45:21 -0500 |
commit | 13aec722f3c14aa6019c800465aa3ddd3638d305 (patch) | |
tree | c8efd6523260c0ccf75f3101df5d727e56a018b9 /include | |
parent | fffc0ca29fdf3a786e74082c698c701d6ebdf720 (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.h | 4 |
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 | ||
911 | struct snd_soc_codec_conf { | 911 | struct snd_soc_codec_conf { |