Skip to contentSkip to conversation

power/reset: Convert to using %pOF instead of full_name

PATCH Applied Rob Herring 2 participants 2 messages Jul 18, 2017 – Jul 24, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power/reset: Convert to using %pOF instead of full_name

Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node.

Cc Nicolas Ferre <[email protected]>
Cc Sebastian Reichel <[email protected]>
---
 drivers/power/reset/at91-sama5d2_shdwc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/reset/at91-sama5d2_shdwc.c +2 -2
index 55fce8b75245..31080c254124 100644
@@ -171,8 +171,8 @@ static u32 at91_shdwc_get_wakeup_input(struct platform_device *pdev,
 
 	for_each_child_of_node(np, cnp) {
 		if (of_property_read_u32(cnp, "reg", &wk_input)) {
-			dev_warn(&pdev->dev, "reg property is missing for %s\n",
-				 cnp->full_name);
+			dev_warn(&pdev->dev, "reg property is missing for %pOF\n",
+				 cnp);
 			continue;
 		}
 

--
2.11.0

maintainer Applied
#1 lore raw

Hi,

Quoted 17 lines · Rob Herring

Now that we have a custom printf format specifier, convert users of full_name to use %pOF instead. This is preparation to remove storing of the full path string for each node.

Cc Nicolas Ferre <[email protected]>
Cc Sebastian Reichel <[email protected]>
---
 drivers/power/reset/at91-sama5d2_shdwc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/power/reset/at91-sama5d2_shdwc.c +0 -0
index 55fce8b75245..31080c254124 100644

drivers/power/reset/at91-sama5d2_shdwc.c static u32 at91_shdwc_get_wakeup_input(struct platform_device *pdev, · line 177

Quoted 9 lines
drivers/power/reset/at91-sama5d2_shdwc.c +2 -2
@@ -171,8 +171,8 @@ static u32 at91_shdwc_get_wakeup_input(struct platform_device *pdev,
 
 	for_each_child_of_node(np, cnp) {
 		if (of_property_read_u32(cnp, "reg", &wk_input)) {
-			dev_warn(&pdev->dev, "reg property is missing for %s\n",
-				 cnp->full_name);
+			dev_warn(&pdev->dev, "reg property is missing for %pOF\n",
+				 cnp);
 			continue;
 		}

Thanks, applied to power-supply's for-next branch.

-- Sebastian