mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
mfd: 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: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
64710af3e2
commit
2154a2b347
@ -278,20 +278,20 @@ static void palmas_dt_to_pdata(struct i2c_client *i2c,
|
|||||||
int ret;
|
int ret;
|
||||||
u32 prop;
|
u32 prop;
|
||||||
|
|
||||||
ret = of_property_read_u32(node, "ti,mux_pad1", &prop);
|
ret = of_property_read_u32(node, "ti,mux-pad1", &prop);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
pdata->mux_from_pdata = 1;
|
pdata->mux_from_pdata = 1;
|
||||||
pdata->pad1 = prop;
|
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) {
|
if (!ret) {
|
||||||
pdata->mux_from_pdata = 1;
|
pdata->mux_from_pdata = 1;
|
||||||
pdata->pad2 = prop;
|
pdata->pad2 = prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The default for this register is all masked */
|
/* 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)
|
if (!ret)
|
||||||
pdata->power_ctrl = prop;
|
pdata->power_ctrl = prop;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user