From: Lars-Peter Clausen Date: Thu, 10 Jan 2013 16:06:15 +0000 (+0100) Subject: ASoC: Constify ops and compr_ops fields of snd_soc_dai_link X-Git-Tag: next-20130218~63^2~16^2~22^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=13aec722f3c14aa6019c800465aa3ddd3638d305;p=karo-tx-linux.git 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 Signed-off-by: Mark Brown --- 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 {