]> 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)
commitb193e4f0faa04a6c2f8074afb8b80f57a8454d92
tree15e93778435bd039f0cc99001dfa54579e4659f9
parentac527240cc36d99f1d1bfc846c14cd1e6f5041fb
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