Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2154a2b3 authored by J Keerthy's avatar J Keerthy Committed by Samuel Ortiz
Browse files

mfd: palmas: Change the DT node property names to follow the convention



DT node properties should not have "_". Replacing them by "-".

Signed-off-by: default avatarJ Keerthy <j-keerthy@ti.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 64710af3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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