summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-02 16:21:08 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-12-03 16:37:55 +0000
commit001ae4c0350a35e8358514326e5c3d165357979a (patch)
treef22ed323a9f480b64512289d8ec2fe781118ebbd /sound/soc/soc-core.c
parentfdf0f54dab8e401fd9bdd441c3fc4fa5c8837646 (diff)
downloadblackbird-op-linux-001ae4c0350a35e8358514326e5c3d165357979a.tar.gz
blackbird-op-linux-001ae4c0350a35e8358514326e5c3d165357979a.zip
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 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e9aa9ce59c06..78a01014079a 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3491,8 +3491,9 @@ static void fixup_codec_formats(struct snd_soc_pcm_stream *stream)
* @codec: codec to register
*/
int snd_soc_register_codec(struct device *dev,
- struct snd_soc_codec_driver *codec_drv,
- struct snd_soc_dai_driver *dai_drv, int num_dai)
+ const struct snd_soc_codec_driver *codec_drv,
+ struct snd_soc_dai_driver *dai_drv,
+ int num_dai)
{
size_t reg_size;
struct snd_soc_codec *codec;
OpenPOWER on IntegriCloud