diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-03-27 07:02:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-03-27 19:08:35 -0400 |
commit | d79e57db84f8359bc96418900f86b8fc4189eff9 (patch) | |
tree | 30ce0538e4c1ebd72498d8083b4da2a32d7c1256 /sound/soc/soc-core.c | |
parent | 36300fd09823be8f7d6feaaa79ddbf54cf205378 (diff) |
ASoC: Constify the 'driver' field of snd_soc_platform
The ASoC core does no not modify the driver of a platform. Making it const
allows ASoC platform drivers to declare the snd_soc_platform_driver struct as
const.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 0ce075c47b25..4d24b5ea3ba7 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -3906,7 +3906,7 @@ EXPORT_SYMBOL_GPL(snd_soc_unregister_dais); | |||
3906 | * @platform: platform to register | 3906 | * @platform: platform to register |
3907 | */ | 3907 | */ |
3908 | int snd_soc_register_platform(struct device *dev, | 3908 | int snd_soc_register_platform(struct device *dev, |
3909 | struct snd_soc_platform_driver *platform_drv) | 3909 | const struct snd_soc_platform_driver *platform_drv) |
3910 | { | 3910 | { |
3911 | struct snd_soc_platform *platform; | 3911 | struct snd_soc_platform *platform; |
3912 | 3912 | ||