regulator: max77686: Fix the delay time for set_voltage_time_sel
authorAxel Lin <axel.lin@gmail.com>
Fri, 8 Jun 2012 09:21:44 +0000 (17:21 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jun 2012 04:09:14 +0000 (12:09 +0800)
commit23ca6bf2318fecfbb9cd9d524e82d5029ef365bf
tree5d32920931ea8f314ef76d85335c865cc0dbf897
parent98a175b60f46a80dfa44fb0e0807f2e5a351f35f
regulator: max77686: Fix the delay time for set_voltage_time_sel

rdev->desc->uV_step * abs(new_selector - old_selector) returns uV.
The unit of ramp_rate is mV/us.
Thus 1000 should be multiplied.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Reviewed-by: Yadwinder Singh Brar <yadi.brar@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max77686.c