aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-10-03 23:15:30 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-10-04 11:05:13 -0400
commitd434bc32d08435979514d437885cb9a7e216dd45 (patch)
treeeb9b4701593fd34550311b4378c19fab85b2cfac
parent696f9175fcb560aa45e99e6a1833f6f30d1f97da (diff)
ASoC: wm8711: Use snd_soc_update_bits for read-modify-write
Use snd_soc_update_bits for read-modify-write register access instead of open-coding it using snd_soc_read and snd_soc_write Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm8711.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c
index 6ecf1ab4202f..47c7fd5e22c5 100644
--- a/sound/soc/codecs/wm8711.c
+++ b/sound/soc/codecs/wm8711.c
@@ -364,7 +364,7 @@ static int wm8711_resume(struct snd_soc_codec *codec)
364static int wm8711_probe(struct snd_soc_codec *codec) 364static int wm8711_probe(struct snd_soc_codec *codec)
365{ 365{
366 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec); 366 struct wm8711_priv *wm8711 = snd_soc_codec_get_drvdata(codec);
367 int ret, reg; 367 int ret;
368 368
369 ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8711->bus_type); 369 ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8711->bus_type);
370 if (ret < 0) { 370 if (ret < 0) {