Skip to content

Commit

Permalink
regulator: Fix setting constraints->ramp_delay in of_get_regulation_c…
Browse files Browse the repository at this point in the history
…onstraints

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 18, 2012
1 parent 6f0b2c6 commit 086ccd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/of_regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void of_get_regulation_constraints(struct device_node *np,

ramp_delay = of_get_property(np, "regulator-ramp-delay", NULL);
if (ramp_delay)
constraints->min_uV = be32_to_cpu(*ramp_delay);
constraints->ramp_delay = be32_to_cpu(*ramp_delay);
}

/**
Expand Down

0 comments on commit 086ccd4

Please sign in to comment.