Skip to content

Commit

Permalink
ASoC: Make struct snd_soc_card's dapm_widgets and dapm_routes const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Apr 13, 2011
1 parent ec5af07 commit d06e48d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d06e48d

Please sign in to comment.