aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorJ Keerthy <j-keerthy@ti.com>2013-02-18 00:14:20 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-03 21:54:42 -0500
commit3c870e3f9d9d98f1ab98614b3b1fd5c79287d361 (patch)
tree4684c777d47bc73e99178536d50162b8f38a3a6a /drivers/regulator
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')
-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 cde13bb5a8fb..4f86f6cab620 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,
553 sizeof(struct palmas_reg_init), GFP_KERNEL); 553 sizeof(struct palmas_reg_init), GFP_KERNEL);
554 554
555 ret = of_property_read_u32(palmas_matches[idx].of_node, 555 ret = of_property_read_u32(palmas_matches[idx].of_node,
556 "ti,warm_reset", &prop); 556 "ti,warm-reset", &prop);
557 if (!ret) 557 if (!ret)
558 pdata->reg_init[idx]->warm_reset = prop; 558 pdata->reg_init[idx]->warm_reset = prop;
559 559
560 ret = of_property_read_u32(palmas_matches[idx].of_node, 560 ret = of_property_read_u32(palmas_matches[idx].of_node,
561 "ti,roof_floor", &prop); 561 "ti,roof-floor", &prop);
562 if (!ret) 562 if (!ret)
563 pdata->reg_init[idx]->roof_floor = prop; 563 pdata->reg_init[idx]->roof_floor = prop;
564 564
565 ret = of_property_read_u32(palmas_matches[idx].of_node, 565 ret = of_property_read_u32(palmas_matches[idx].of_node,
566 "ti,mode_sleep", &prop); 566 "ti,mode-sleep", &prop);
567 if (!ret) 567 if (!ret)
568 pdata->reg_init[idx]->mode_sleep = prop; 568 pdata->reg_init[idx]->mode_sleep = prop;
569 569
@@ -578,7 +578,7 @@ static void palmas_dt_to_pdata(struct device *dev,
578 pdata->reg_init[idx]->vsel = prop; 578 pdata->reg_init[idx]->vsel = prop;
579 } 579 }
580 580
581 ret = of_property_read_u32(node, "ti,ldo6_vibrator", &prop); 581 ret = of_property_read_u32(node, "ti,ldo6-vibrator", &prop);
582 if (!ret) 582 if (!ret)
583 pdata->ldo6_vibrator = prop; 583 pdata->ldo6_vibrator = prop;
584} 584}