diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-01-10 17:06:15 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-14 07:45:21 +0900 |
commit | 13aec722f3c14aa6019c800465aa3ddd3638d305 (patch) | |
tree | c8efd6523260c0ccf75f3101df5d727e56a018b9 /include/sound | |
parent | fffc0ca29fdf3a786e74082c698c701d6ebdf720 (diff) | |
download | lwn-13aec722f3c14aa6019c800465aa3ddd3638d305.tar.gz lwn-13aec722f3c14aa6019c800465aa3ddd3638d305.zip |
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/sound')
-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 { struct snd_pcm_hw_params *params); /* machine stream operations */ - struct snd_soc_ops *ops; - struct snd_soc_compr_ops *compr_ops; + const struct snd_soc_ops *ops; + const struct snd_soc_compr_ops *compr_ops; }; struct snd_soc_codec_conf { |