aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-04-12 13:31:01 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-13 13:34:26 -0400
commitd06e48db1670b29b3f62f1dfe4a36af237d5aa0d (patch)
treeb11558c2bcdc230b30edf592c357022dba3818fa /include/sound
parentec5af076f53da800eef939ab092561d85f162637 (diff)
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 <lars@metafoo.de> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h4
1 files changed, 2 insertions, 2 deletions
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 {
755 /* 755 /*
756 * Card-specific routes and widgets. 756 * Card-specific routes and widgets.
757 */ 757 */
758 struct snd_soc_dapm_widget *dapm_widgets; 758 const struct snd_soc_dapm_widget *dapm_widgets;
759 int num_dapm_widgets; 759 int num_dapm_widgets;
760 struct snd_soc_dapm_route *dapm_routes; 760 const struct snd_soc_dapm_route *dapm_routes;
761 int num_dapm_routes; 761 int num_dapm_routes;
762 762
763 struct work_struct deferred_resume_work; 763 struct work_struct deferred_resume_work;