From: Mark Brown Date: Thu, 2 Dec 2010 16:10:09 +0000 (+0000) Subject: ASoC: Make the DAI ops constant in the DAI structure X-Git-Tag: v2.6.38-rc1~236^2^2~98 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1ee46ebd;p=karo-tx-linux.git ASoC: Make the DAI ops constant in the DAI structure Neither drivers nor the core should be fiddling with the actual ops structure at runtime. Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 0195b7ee17e1..1bafe95dcf41 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -203,7 +203,7 @@ struct snd_soc_dai_driver { int (*resume)(struct snd_soc_dai *dai); /* ops */ - struct snd_soc_dai_ops *ops; + const struct snd_soc_dai_ops *ops; /* DAI capabilities */ struct snd_soc_pcm_stream capture;