ASoC: Constify the 'ops' field of snd_soc_platform_driver
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 27 Mar 2013 11:02:23 +0000 (12:02 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Mar 2013 23:08:35 +0000 (23:08 +0000)
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>
include/sound/soc.h

index 5fb70d1e8cce5b7de575f1b3a93940939d6f68b9..966a854fc05402fd02a3c158706acfbe3b9dbcb9 100644 (file)
@@ -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;