regulator: max8973: Fix setting ramp delay
authorAxel Lin <axel.lin@ingics.com>
Sun, 29 May 2016 11:20:03 +0000 (19:20 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 30 May 2016 16:00:56 +0000 (17:00 +0100)
commitd0abd6f5f5eac758f4bcf4001f6cc377320ebc84
tree9afcc4230513211415ad3c985cd43c1881fd10a1
parent1a695a905c18548062509178b98bc91e67510864
regulator: max8973: Fix setting ramp delay

Current code can set ramp delay to a wrong setting that the return value
from .set_voltage_time_sel is not enough for proper delay.
Fix the logic in .set_ramp_delay and also remove unused ret_val variable.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max8973-regulator.c
This page took 0.025687 seconds and 5 git commands to generate.