diff options
author | Sangbeom Kim <sbkim73@samsung.com> | 2012-03-09 02:28:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-11 16:49:29 -0400 |
commit | 0f8b9c774442fa0ada36e5a0de9567588cc964cd (patch) | |
tree | 10f7d17beaead940c609e1a00649672157b7abff | |
parent | 394ee3d5bea96b6dd29ec42a797d1ee4c2af5f1d (diff) |
regulator: Fix s5m8767_set_voltage_time_sel calculation value
In the s5m8767_set_voltage_time_sel function, divisor unit is wrong.
ramp_delay is usec unit. So 1000 should be multiplied.
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | drivers/regulator/s5m8767.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index e369d9ebec5d..3592ccb4e603 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c | |||
@@ -457,7 +457,7 @@ static int s5m8767_set_voltage_time_sel(struct regulator_dev *rdev, | |||
457 | 457 | ||
458 | if (old_sel < new_sel) | 458 | if (old_sel < new_sel) |
459 | return DIV_ROUND_UP(desc->step * (new_sel - old_sel), | 459 | return DIV_ROUND_UP(desc->step * (new_sel - old_sel), |
460 | s5m8767->ramp_delay); | 460 | s5m8767->ramp_delay * 1000); |
461 | return 0; | 461 | return 0; |
462 | } | 462 | } |
463 | 463 | ||