ASoC: Constify the 'compr_ops' field of snd_soc_platform_driver
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 27 Mar 2013 11:02:24 +0000 (12:02 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Mar 2013 23:09:36 +0000 (23:09 +0000)
The ASoC core does not modify a platform driver's compr_ops structure. Making it
const allows ASoC platform drivers to declare their snd_compr_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 966a854fc05402fd02a3c158706acfbe3b9dbcb9..f619905f0a6509b602497e7d6958d94a7edd28e9 100644 (file)
@@ -804,7 +804,7 @@ struct snd_soc_platform_driver {
        const struct snd_pcm_ops *ops;
 
        /* platform stream compress ops */
-       struct snd_compr_ops *compr_ops;
+       const struct snd_compr_ops *compr_ops;
 
        /* platform stream completion event */
        int (*stream_event)(struct snd_soc_dapm_context *dapm, int event);