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)
committerSasha Levin <sasha.levin@oracle.com>
Thu, 9 Apr 2015 22:40:56 +0000 (18:40 -0400)
commitdd7445688e96a42ba22eaa1b33677eb64ea24ec3
tree3feefcea90c792d78045b09c2e022959db09ed98
parentdb17146a0d26211abea0e30dd251e5e99a1e96d4
ASoC: sgtl5000: remove useless register write clearing CHRGPUMP_POWERUP

[ Upstream commit c7d910b87d3c8e9fcf4077089ca4327c12eee099 ]

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>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/soc/codecs/sgtl5000.c