Skip to content

Commit

Permalink
ASoC: Constify ops and compr_ops fields of snd_soc_dai_link
Browse files Browse the repository at this point in the history
The core does not modify these fields, so they can be made const. This allows
drivers to declare their op tables as const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Jan 13, 2013
1 parent fffc0ca commit 13aec72
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 @@ -904,8 +904,8 @@ struct snd_soc_dai_link {
struct snd_pcm_hw_params *params);

/* machine stream operations */
struct snd_soc_ops *ops;
struct snd_soc_compr_ops *compr_ops;
const struct snd_soc_ops *ops;
const struct snd_soc_compr_ops *compr_ops;
};

struct snd_soc_codec_conf {
Expand Down

0 comments on commit 13aec72

Please sign in to comment.