diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2011-08-27 16:24:14 (GMT) |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-08-31 08:47:01 (GMT) |
commit | b92d150baeb876cbf0fd4cc8d997f005cc57e3f4 (patch) | |
tree | e0c10661368e929f97d28babe52b6df3b5ebc843 /sound/soc/soc-core.c | |
parent | 0f8dd4ce4775806196300dc075ba8d4f1f9b605d (diff) | |
download | linux-fsl-qoriq-b92d150baeb876cbf0fd4cc8d997f005cc57e3f4.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4065d4e..fc7fff3 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, step = codec->driver->reg_cache_step; for (i = 0; i < codec->driver->reg_cache_size; i += step) { - if (codec->readable_register && !codec->readable_register(codec, i)) + if (!snd_soc_codec_readable_register(codec, i)) continue; if (codec->driver->display_register) { count += codec->driver->display_register(codec, buf + count, |