Skip to content

Commit

Permalink
ASoC: Constify the 'ops' field of snd_soc_platform_driver
Browse files Browse the repository at this point in the history
The ASoC core does not modify a platform driver's ops structure. Making it const
allows ASoC platform drivers to declare their snd_pcm_ops struct 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 Mar 27, 2013
1 parent d79e57d commit 1f03f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sound/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ struct snd_soc_platform_driver {
struct snd_soc_dai *);

/* platform stream pcm ops */
struct snd_pcm_ops *ops;
const struct snd_pcm_ops *ops;

/* platform stream compress ops */
struct snd_compr_ops *compr_ops;
Expand Down

0 comments on commit 1f03f55

Please sign in to comment.