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-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ee46ebd0435d547c078859c719d7c892ff7ab2d;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.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;