diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-27 07:02:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-27 19:09:36 -0400 |
commit | ef03c9ae967bf1b40bec1456f7e744033853a01d (patch) | |
tree | 1738e8469040c7b2afb9be37dc035e8f281a3885 /include/sound/soc.h | |
parent | 1f03f55b0ca679f950148954e807feb22cff325c (diff) |
ASoC: Constify the 'compr_ops' field of snd_soc_platform_driver
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>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 966a854fc054..f619905f0a65 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -804,7 +804,7 @@ struct snd_soc_platform_driver { | |||
804 | const struct snd_pcm_ops *ops; | 804 | const struct snd_pcm_ops *ops; |
805 | 805 | ||
806 | /* platform stream compress ops */ | 806 | /* platform stream compress ops */ |
807 | struct snd_compr_ops *compr_ops; | 807 | const struct snd_compr_ops *compr_ops; |
808 | 808 | ||
809 | /* platform stream completion event */ | 809 | /* platform stream completion event */ |
810 | int (*stream_event)(struct snd_soc_dapm_context *dapm, int event); | 810 | int (*stream_event)(struct snd_soc_dapm_context *dapm, int event); |