summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-01-13 15:20:37 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-13 17:17:43 +0300
commitd4754ec91c7b094298f0b2ba02327e6887671edc (patch)
tree82fe1a8e9ae2ad16b53d82a9403c181f753911d0 /sound/soc/soc-core.c
parent066d16c3e8194677a9aaeb06a45e4014387d16f1 (diff)
downloadlinux-d4754ec91c7b094298f0b2ba02327e6887671edc.tar.xz
ASoC: Update users of readable_register()/volatile_register()
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index cbac50b69c39..b5e5758456bd 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -84,7 +84,7 @@ static ssize_t soc_codec_reg_show(struct snd_soc_codec *codec, char *buf)
count += sprintf(buf, "%s registers\n", codec->name);
for (i = 0; i < codec->driver->reg_cache_size; i += step) {
- if (codec->driver->readable_register && !codec->driver->readable_register(i))
+ if (codec->driver->readable_register && !codec->driver->readable_register(codec, i))
continue;
count += sprintf(buf + count, "%2x: ", i);
@@ -2030,7 +2030,7 @@ static int soc_new_pcm(struct snd_soc_pcm_runtime *rtd, int num)
int snd_soc_codec_volatile_register(struct snd_soc_codec *codec, int reg)
{
if (codec->driver->volatile_register)
- return codec->driver->volatile_register(reg);
+ return codec->driver->volatile_register(codec, reg);
else
return 0;
}