regulator: s2mps11: Don't check enable_shift before setting enable ramp rate
authorAxel Lin <axel.lin@ingics.com>
Fri, 21 Mar 2014 08:16:24 +0000 (16:16 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 2 Apr 2014 19:53:16 +0000 (20:53 +0100)
commitb96244fad9530a707b732c3650d349aed2c9cfcd
tree6258b5dd681cf55e1c1c532143ab210d050ab8cb
parentf7b1a8dc1c1ca30d6a9ceb1f23f0e9847668600b
regulator: s2mps11: Don't check enable_shift before setting enable ramp rate

Current code misses updating the register when enable_shift is 0.
e.g. S2MPS11_BUCK9_RAMP_SHIFT and S2MPS11_BUCK6_RAMP_EN_SHIFT are 0.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s2mps11.c