Skip to content

Commit

Permalink
regulator: palmas: Change the DT node property names to follow the co…
Browse files Browse the repository at this point in the history
…nvention

DT node properties should not have "_". Replacing them by "-".

Signed-off-by: J Keerthy <j-keerthy@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
J Keerthy authored and Mark Brown committed Mar 4, 2013
1 parent 6dbe51c commit 3c870e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/regulator/palmas-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,17 +553,17 @@ static void palmas_dt_to_pdata(struct device *dev,
sizeof(struct palmas_reg_init), GFP_KERNEL);

ret = of_property_read_u32(palmas_matches[idx].of_node,
"ti,warm_reset", &prop);
"ti,warm-reset", &prop);
if (!ret)
pdata->reg_init[idx]->warm_reset = prop;

ret = of_property_read_u32(palmas_matches[idx].of_node,
"ti,roof_floor", &prop);
"ti,roof-floor", &prop);
if (!ret)
pdata->reg_init[idx]->roof_floor = prop;

ret = of_property_read_u32(palmas_matches[idx].of_node,
"ti,mode_sleep", &prop);
"ti,mode-sleep", &prop);
if (!ret)
pdata->reg_init[idx]->mode_sleep = prop;

Expand All @@ -578,7 +578,7 @@ static void palmas_dt_to_pdata(struct device *dev,
pdata->reg_init[idx]->vsel = prop;
}

ret = of_property_read_u32(node, "ti,ldo6_vibrator", &prop);
ret = of_property_read_u32(node, "ti,ldo6-vibrator", &prop);
if (!ret)
pdata->ldo6_vibrator = prop;
}
Expand Down

0 comments on commit 3c870e3

Please sign in to comment.