regulator: s2mps11: Don't check enable_shift before setting enable ramp rate
authorAxel Lin <[email protected]>
Fri, 21 Mar 2014 08:16:24 +0000 (16:16 +0800)
committerMark Brown <[email protected]>
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 <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/regulator/s2mps11.c