From: Lars-Peter Clausen Date: Tue, 12 Apr 2011 17:31:01 +0000 (+0200) Subject: ASoC: Make struct snd_soc_card's dapm_widgets and dapm_routes const X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d06e48db1670b29b3f62f1dfe4a36af237d5aa0d;p=openwrt%2Fstaging%2Fblogic.git ASoC: Make struct snd_soc_card's dapm_widgets and dapm_routes const Those should not be modified (and are not) by the core code, so make them const. This also makes them consistent with the same members of snd_soc_codec. Signed-off-by: Lars-Peter Clausen Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/include/sound/soc.h b/include/sound/soc.h index 435cb83c7f48..cb6b18b6eece 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -755,9 +755,9 @@ struct snd_soc_card { /* * Card-specific routes and widgets. */ - struct snd_soc_dapm_widget *dapm_widgets; + const struct snd_soc_dapm_widget *dapm_widgets; int num_dapm_widgets; - struct snd_soc_dapm_route *dapm_routes; + const struct snd_soc_dapm_route *dapm_routes; int num_dapm_routes; struct work_struct deferred_resume_work;