]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: s2mpa01: Use correct register for buck1 ramp delay
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 26 May 2014 08:26:46 +0000 (10:26 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 26 May 2014 14:39:12 +0000 (15:39 +0100)
commit92a4bdc45e262fd547173ebabb6e3551925ef02b
treed871184da0d4486d313c0da87ebcb6a65c04e948
parent03a169e57a9a3fd69c1713c317a06f163ad63b5c
regulator: s2mpa01: Use correct register for buck1 ramp delay

Fix the register for ramp delay of buck1 regulator. Buck1 and buck6
share the field (offset 4) in ramp delay register S2MPA01_REG_RAMP2.

The driver used the same register and field for ramp delay of buck3 and
buck1. This lead to updating of ramp delay of buck3 when setting buck1
and actually the ramp delay of buck1 was never set.

Fixes: 1ea5cff56afb ("regulator: Add support for S2MPA01 regulator")
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: <stable@vger.kernel.org>
drivers/regulator/s2mpa01.c