spmi: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:32 +0000 (16:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:20 +0000 (13:51 +0200)
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.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi.c

index 6d23226e5f696ee2268073efbe899bdfea88ba8a..aa3edabc2b0fe7a592cc0a579a704ac546901188 100644 (file)
@@ -466,27 +466,25 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
                struct spmi_device *sdev;
                u32 reg[2];
 
-               dev_dbg(&ctrl->dev, "adding child %s\n", node->full_name);
+               dev_dbg(&ctrl->dev, "adding child %pOF\n", node);
 
                err = of_property_read_u32_array(node, "reg", reg, 2);
                if (err) {
                        dev_err(&ctrl->dev,
-                               "node %s err (%d) does not have 'reg' property\n",
-                               node->full_name, err);
+                               "node %pOF err (%d) does not have 'reg' property\n",
+                               node, err);
                        continue;
                }
 
                if (reg[1] != SPMI_USID) {
                        dev_err(&ctrl->dev,
-                               "node %s contains unsupported 'reg' entry\n",
-                               node->full_name);
+                               "node %pOF contains unsupported 'reg' entry\n",
+                               node);
                        continue;
                }
 
                if (reg[0] >= SPMI_MAX_SLAVE_ID) {
-                       dev_err(&ctrl->dev,
-                               "invalid usid on node %s\n",
-                               node->full_name);
+                       dev_err(&ctrl->dev, "invalid usid on node %pOF\n", node);
                        continue;
                }