summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/palmas-regulator.c
diff options
context:
space:
mode:
authorJ Keerthy <j-keerthy@ti.com>2013-02-18 10:44:20 +0530
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-04 10:54:42 +0800
commit3c870e3f9d9d98f1ab98614b3b1fd5c79287d361 (patch)
tree4684c777d47bc73e99178536d50162b8f38a3a6a /drivers/regulator/palmas-regulator.c
parent6dbe51c251a327e012439c4772097a13df43c5b8 (diff)
regulator: palmas: Change the DT node property names to follow the convention
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>
Diffstat (limited to 'drivers/regulator/palmas-regulator.c')
-rw-r--r--drivers/regulator/palmas-regulator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index cde13bb5a8f..4f86f6cab62 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -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;
@@ -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;
}