浏览代码

regulator: Fix setting constraints->ramp_delay in of_get_regulation_constraints

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Axel Lin 13 年之前
父节点
当前提交
086ccd4379
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/regulator/of_regulator.c

+ 1 - 1
drivers/regulator/of_regulator.c

@@ -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);
 }
 
 /**