regulator: palmas: Change the DT node property names to follow the convention
authorJ Keerthy <j-keerthy@ti.com>
Mon, 18 Feb 2013 05:14:20 +0000 (10:44 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 4 Mar 2013 02:54:42 +0000 (10:54 +0800)
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>
drivers/regulator/palmas-regulator.c

index cde13bb5a8fbc4163eb7769b9b7e09e90eaf1d75..4f86f6cab620f5c4207c13afa13d967d49e2a3dc 100644 (file)
@@ -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;
 }