diff options
author | Robin Gong <b38343@freescale.com> | 2013-05-27 13:44:11 +0800 |
---|---|---|
committer | Robin Gong <b38343@freescale.com> | 2013-07-05 11:16:42 +0800 |
commit | a5d9bb5298416c25f85415ed1653072bb953e5c5 (patch) | |
tree | 64724a6b584d0e3050db22d3bab22439d2a3d790 /drivers | |
parent | 04b5224599fef16ef3a1856dd1b3205360b772c1 (diff) |
ENGR00264286 pfuze:fix LDO ramp up time calculate error.
fix the calculate error.
Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 8ab80b70d276..bd356c40cec5 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -631,9 +631,9 @@ static int pfuze100_regulator_set_voltage_time_sel(struct regulator_dev *rdev, * 02: 8us, * 03: 16us, */ - step_delay >>= 5; + step_delay >>= 6; step_delay &= 0x3; - step_delay <<= 1; + step_delay = 2 << step_delay; if (pfuze100_regulators[id].voltages[old_sel] < pfuze100_regulators[id].voltages[new_sel]) |