extcon: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:00 +0000 (16:43 -0500)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 19 Jul 2017 01:37:10 +0000 (10:37 +0900)
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>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon.c

index 8eccf7b..229364a 100644 (file)
@@ -1363,8 +1363,8 @@ struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index)
 
        node = of_parse_phandle(dev->of_node, "extcon", index);
        if (!node) {
-               dev_dbg(dev, "failed to get phandle in %s node\n",
-                       dev->of_node->full_name);
+               dev_dbg(dev, "failed to get phandle in %pOF node\n",
+                       dev->of_node);
                return ERR_PTR(-ENODEV);
        }