regulator: max8997: reorder buck1/2/5 dvs setup code
authorThomas Abraham <thomas.abraham@linaro.org>
Fri, 23 Nov 2012 08:03:13 +0000 (13:33 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 24 Nov 2012 17:56:32 +0000 (18:56 +0100)
commit11ec7bf001e7bfd37f244042032e15dac2c301bc
tree1aa99ecea43bce6def8365844aa9a97ab86d3b2d
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
regulator: max8997: reorder buck1/2/5 dvs setup code

The BUCKxDVSx register programming is now moved prior to setting up of the
gpio based dvs mode. This will ensure that all the BUCKxDVSx registers
are programmed with appropriate voltage values before the gpio based dvs
mode is selected for buck1/2/5.

Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8997.c