ASoC: sgtl5000: remove useless register write clearing CHRGPUMP_POWERUP
authorEric Nelson <eric.nelson@boundarydevices.com>
Fri, 27 Feb 2015 15:06:45 +0000 (08:06 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 9 May 2015 22:16:26 +0000 (23:16 +0100)
commitadbfe97321e680361fc0a6b150176b146c2532b1
tree8e09088896800c9a4ecb7139f5bdd316158a7a98
parent0c41f396fa25913aa1141c24e0898eee83a5b2bd
ASoC: sgtl5000: remove useless register write clearing CHRGPUMP_POWERUP

commit c7d910b87d3c8e9fcf4077089ca4327c12eee099 upstream.

The SGTL5000_CHIP_ANA_POWER register is cached. Update the cached
value instead of writing it directly.

Patch inspired by Russell King's more colorful remarks in this
patch:
https://github.com/SolidRun/linux-imx6-3.14/commit/dd4bf6a

Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/codecs/sgtl5000.c