mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
6dbe51c251
commit
3c870e3f9d
@ -553,17 +553,17 @@ static void palmas_dt_to_pdata(struct device *dev,
|
|||||||
sizeof(struct palmas_reg_init), GFP_KERNEL);
|
sizeof(struct palmas_reg_init), GFP_KERNEL);
|
||||||
|
|
||||||
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
||||||
"ti,warm_reset", &prop);
|
"ti,warm-reset", &prop);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
pdata->reg_init[idx]->warm_reset = prop;
|
pdata->reg_init[idx]->warm_reset = prop;
|
||||||
|
|
||||||
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
||||||
"ti,roof_floor", &prop);
|
"ti,roof-floor", &prop);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
pdata->reg_init[idx]->roof_floor = prop;
|
pdata->reg_init[idx]->roof_floor = prop;
|
||||||
|
|
||||||
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
ret = of_property_read_u32(palmas_matches[idx].of_node,
|
||||||
"ti,mode_sleep", &prop);
|
"ti,mode-sleep", &prop);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
pdata->reg_init[idx]->mode_sleep = prop;
|
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;
|
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)
|
if (!ret)
|
||||||
pdata->ldo6_vibrator = prop;
|
pdata->ldo6_vibrator = prop;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user