From: Lars-Peter Clausen Date: Sat, 27 Aug 2011 16:24:14 +0000 (+0200) Subject: ASoC: soc_codec_reg_show use snd_soc_codec_readable_register X-Git-Tag: MMI-PSA29.97-13-9~16612^2~882 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b92d150baeb876cbf0fd4cc8d997f005cc57e3f4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- 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, 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,