]> git.kernelconcepts.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>
Tue, 28 Aug 2012 18:00:25 +0000 (11:00 -0700)
commit4001376ef2f6f4ec0f362566d95937434afa07ba
tree15e93778435bd039f0cc99001dfa54579e4659f9
parent363506cd71a5cafeee67b236112f1baf8c30b0ea
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