diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-02 11:21:08 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-03 11:37:55 -0500 |
commit | 001ae4c0350a35e8358514326e5c3d165357979a (patch) | |
tree | f22ed323a9f480b64512289d8ec2fe781118ebbd /include/sound/soc.h | |
parent | fdf0f54dab8e401fd9bdd441c3fc4fa5c8837646 (diff) |
ASoC: Constify struct snd_soc_codec_driver
Allow the CODEC driver structure to be marked const by making all
the APIs that use it do so.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index 7d53cc453637..0eea08e1bdd5 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -265,7 +265,7 @@ int snd_soc_register_platform(struct device *dev, | |||
265 | struct snd_soc_platform_driver *platform_drv); | 265 | struct snd_soc_platform_driver *platform_drv); |
266 | void snd_soc_unregister_platform(struct device *dev); | 266 | void snd_soc_unregister_platform(struct device *dev); |
267 | int snd_soc_register_codec(struct device *dev, | 267 | int snd_soc_register_codec(struct device *dev, |
268 | struct snd_soc_codec_driver *codec_drv, | 268 | const struct snd_soc_codec_driver *codec_drv, |
269 | struct snd_soc_dai_driver *dai_drv, int num_dai); | 269 | struct snd_soc_dai_driver *dai_drv, int num_dai); |
270 | void snd_soc_unregister_codec(struct device *dev); | 270 | void snd_soc_unregister_codec(struct device *dev); |
271 | int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, int reg); | 271 | int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, int reg); |
@@ -453,7 +453,7 @@ struct snd_soc_codec { | |||
453 | const char *name_prefix; | 453 | const char *name_prefix; |
454 | int id; | 454 | int id; |
455 | struct device *dev; | 455 | struct device *dev; |
456 | struct snd_soc_codec_driver *driver; | 456 | const struct snd_soc_codec_driver *driver; |
457 | 457 | ||
458 | struct mutex mutex; | 458 | struct mutex mutex; |
459 | struct snd_soc_card *card; | 459 | struct snd_soc_card *card; |