regulator: max8973: Don't override control1 variable when set ramp delay bits
authorAxel Lin <axel.lin@ingics.com>
Tue, 23 Apr 2013 16:14:55 +0000 (00:14 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 24 Apr 2013 09:52:28 +0000 (10:52 +0100)
commitb27032ca3ec19edc7a1e3ed76e0988645505507b
tree359b4fe893d15b9078ed8be1460afbd992e88bb4
parent60d509fa6a9c4653a86ad830e4c4b30360b23f0e
regulator: max8973: Don't override control1 variable when set ramp delay bits

Current code overrides control1 variable when setting ramp delay bits.
Fix it by just setting ramp_delay bits.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8973-regulator.c