regulator: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:26 +0000 (16:43 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jul 2017 10:56:01 +0000 (11:56 +0100)
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: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/max1586.c
drivers/regulator/s5m8767.c
drivers/reset/reset-socfpga.c

index e567fa54980b6df80c3ef4757aa57086986eca68..d79ba9af935248dabf4e7286a0c0acbbb68f53a0 100644 (file)
@@ -204,8 +204,8 @@ static struct device_node *of_get_regulator(struct device *dev, const char *supp
        regnode = of_parse_phandle(dev->of_node, prop_name, 0);
 
        if (!regnode) {
-               dev_dbg(dev, "Looking up %s property in node %s failed\n",
-                               prop_name, dev->of_node->full_name);
+               dev_dbg(dev, "Looking up %s property in node %pOF failed\n",
+                               prop_name, dev->of_node);
                return NULL;
        }
        return regnode;
index 6779c2b536744b9d95c9fd32068d9ac83c436f6e..66bbaa9994333dc383ea6b51aa14e823d43ada62 100644 (file)
@@ -169,7 +169,7 @@ static int of_get_max1586_platform_data(struct device *dev,
 
        if (of_property_read_u32(np, "v3-gain",
                                 &pdata->v3_gain) < 0) {
-               dev_err(dev, "%s has no 'v3-gain' property\n", np->full_name);
+               dev_err(dev, "%pOF has no 'v3-gain' property\n", np);
                return -EINVAL;
        }
 
index 383cd7533721cf1c2f831e91981fdfd29806da2b..4836947e1521d6bff2f37cff5bef37ae809193bb 100644 (file)
@@ -590,8 +590,8 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
                if (of_property_read_u32(reg_np, "op_mode",
                                &rmode->mode)) {
                        dev_warn(iodev->dev,
-                               "no op_mode property property at %s\n",
-                               reg_np->full_name);
+                               "no op_mode property property at %pOF\n",
+                               reg_np);
 
                        rmode->mode = S5M8767_OPMODE_NORMAL_MODE;
                }
index 07224c019892006248a98fe58343d2a0f6c4fe36..c60904ff40b830358a966b5121a9876a90d5ebe0 100644 (file)
@@ -109,8 +109,8 @@ static int socfpga_reset_probe(struct platform_device *pdev)
         * Do not continue, when we encounter an old DT.
         */
        if (!of_find_property(pdev->dev.of_node, "#reset-cells", NULL)) {
-               dev_err(&pdev->dev, "%s missing #reset-cells property\n",
-                       pdev->dev.of_node->full_name);
+               dev_err(&pdev->dev, "%pOF missing #reset-cells property\n",
+                       pdev->dev.of_node);
                return -EINVAL;
        }