Skip to contentSkip to conversation

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

PATCH Applied J Keerthy 2 participants 2 messages Feb 18, 2013 – Apr 5, 2013

Subsystems (2)
lore
Share & tools
lore

J Keerthy

author
#0 lore raw

PATCH 2/4 mfd: palmas: Change the DT node property names to follow the convention

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

---
 drivers/mfd/palmas.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/mfd/palmas.c +3 -3
index 6ffd7a2..d8467cf 100644
@@ -253,20 +253,20 @@ static void palmas_dt_to_pdata(struct device_node *node,
 	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
Signature · 1 line
1.7.5.4
Applied
#1 lore raw

Hi,

Quoted 6 lines · J Keerthy

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

---
 drivers/mfd/palmas.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Cheers,
Samuel.

Signature · 2 lines
Intel Open Source Technology Centre
http://oss.intel.com/