]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: wm8400: Simplify set REGULATOR_MODE_IDLE mode in wm8400_dcdc_set_mode
authorAxel Lin <axel.lin@gmail.com>
Wed, 1 Aug 2012 01:15:11 +0000 (09:15 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 3 Aug 2012 22:21:30 +0000 (23:21 +0100)
commit9139b6352494f1f1a53cce21625f6b0edefdb321
treee765d5f09e246ac6c484a1e6ce5ed06940290ba8
parent2981448ea6a3fd814e5ba7350330d3968becd4e6
regulator: wm8400: Simplify set REGULATOR_MODE_IDLE mode in wm8400_dcdc_set_mode

To set REGULATOR_MODE_IDLE mode, what we do is to clear DC1_ACTIVE and
DC1_SLEEP bits, this can be done in one wm8400_set_bits() call.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/wm8400-regulator.c