]> git.baikalelectronics.ru Git - kernel.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)
commitf979cf5d637690f54448200b92dd819a41438624
tree15e93778435bd039f0cc99001dfa54579e4659f9
parent3c90fc5086d1ee014f791ad49a0d9c1eaf7384a2
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