diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-10-03 23:18:59 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-04 11:05:12 -0400 |
commit | 696f9175fcb560aa45e99e6a1833f6f30d1f97da (patch) | |
tree | 50d83411defb070a5bf11c6317e2ba9d7334f58b /sound | |
parent | f5b00d024fb3308a42610d23f9b8d5d5d9fad8eb (diff) |
ASoC: wm8988: 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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8988.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c index 5099e62641d4..1c6f8bfbf94a 100644 --- a/sound/soc/codecs/wm8988.c +++ b/sound/soc/codecs/wm8988.c | |||
@@ -759,7 +759,6 @@ static int wm8988_probe(struct snd_soc_codec *codec) | |||
759 | struct wm8988_priv *wm8988 = snd_soc_codec_get_drvdata(codec); | 759 | struct wm8988_priv *wm8988 = snd_soc_codec_get_drvdata(codec); |
760 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 760 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
761 | int ret = 0; | 761 | int ret = 0; |
762 | u16 reg; | ||
763 | 762 | ||
764 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8988->control_type); | 763 | ret = snd_soc_codec_set_cache_io(codec, 7, 9, wm8988->control_type); |
765 | if (ret < 0) { | 764 | if (ret < 0) { |