aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-08-27 12:24:14 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-08-31 04:47:01 -0400
commitb92d150baeb876cbf0fd4cc8d997f005cc57e3f4 (patch)
treee0c10661368e929f97d28babe52b6df3b5ebc843 /sound/soc/soc-core.c
parent0f8dd4ce4775806196300dc075ba8d4f1f9b605d (diff)
ASoC: soc_codec_reg_show use snd_soc_codec_readable_register
Use snd_soc_codec_readable_register instead of open-coding it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 4065d4e84ea3..fc7fff3604f7 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -143,7 +143,7 @@ static ssize_t soc_codec_reg_show(struct snd_soc_codec *codec, char *buf,
143 step = codec->driver->reg_cache_step; 143 step = codec->driver->reg_cache_step;
144 144
145 for (i = 0; i < codec->driver->reg_cache_size; i += step) { 145 for (i = 0; i < codec->driver->reg_cache_size; i += step) {
146 if (codec->readable_register && !codec->readable_register(codec, i)) 146 if (!snd_soc_codec_readable_register(codec, i))
147 continue; 147 continue;
148 if (codec->driver->display_register) { 148 if (codec->driver->display_register) {
149 count += codec->driver->display_register(codec, buf + count, 149 count += codec->driver->display_register(codec, buf + count,