ASoC: sgtl5000: read chip revision for once
authorShawn Guo <shawn.guo@linaro.org>
Fri, 13 Dec 2013 06:43:02 +0000 (14:43 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Dec 2013 20:14:44 +0000 (20:14 +0000)
commit252e91ff1094eefacd25b401c3b77e549803cae6
tree72d95f842cc3faa1681f50e3c20506e4f2b5d789
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
ASoC: sgtl5000: read chip revision for once

Store chip revision in struct sgtl5000_priv when sgtl5000_i2c_probe()
reads it out from register, so that we can use it in
sgtl5000_enable_regulators() with no need to read register again.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/sgtl5000.c