diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-27 07:02:23 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-27 19:08:35 -0400 |
commit | 1f03f55b0ca679f950148954e807feb22cff325c (patch) | |
tree | db49721705a0be5fbf74021d061c88771a338d9c /include/sound/soc.h | |
parent | d79e57db84f8359bc96418900f86b8fc4189eff9 (diff) |
ASoC: Constify the 'ops' field of snd_soc_platform_driver
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>
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 5fb70d1e8cce..966a854fc054 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -801,7 +801,7 @@ struct snd_soc_platform_driver { | |||
801 | struct snd_soc_dai *); | 801 | struct snd_soc_dai *); |
802 | 802 | ||
803 | /* platform stream pcm ops */ | 803 | /* platform stream pcm ops */ |
804 | 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 | struct snd_compr_ops *compr_ops; |