mfd: palmas: Change the DT node property names to follow the convention
authorJ Keerthy <j-keerthy@ti.com>
Mon, 18 Feb 2013 05:12:44 +0000 (10:42 +0530)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 5 Apr 2013 15:53:42 +0000 (17:53 +0200)
DT node properties should not have "_". Replacing them by "-".

Signed-off-by: J Keerthy <j-keerthy@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/palmas.c

index 73bf76d..c01b69a 100644 (file)
@@ -278,20 +278,20 @@ static void palmas_dt_to_pdata(struct i2c_client *i2c,
        int ret;
        u32 prop;
 
-       ret = of_property_read_u32(node, "ti,mux_pad1", &prop);
+       ret = of_property_read_u32(node, "ti,mux-pad1", &prop);
        if (!ret) {
                pdata->mux_from_pdata = 1;
                pdata->pad1 = prop;
        }
 
-       ret = of_property_read_u32(node, "ti,mux_pad2", &prop);
+       ret = of_property_read_u32(node, "ti,mux-pad2", &prop);
        if (!ret) {
                pdata->mux_from_pdata = 1;
                pdata->pad2 = prop;
        }
 
        /* The default for this register is all masked */
-       ret = of_property_read_u32(node, "ti,power_ctrl", &prop);
+       ret = of_property_read_u32(node, "ti,power-ctrl", &prop);
        if (!ret)
                pdata->power_ctrl = prop;
        else