phy: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Tue, 28 Aug 2018 01:52:40 +0000 (20:52 -0500)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 25 Sep 2018 10:40:07 +0000 (16:10 +0530)
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Cc: Kishon Vijay Abraham I <kishon@ti.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-bcm-cygnus-pcie.c
drivers/phy/broadcom/phy-brcm-sata.c
drivers/phy/marvell/phy-berlin-sata.c
drivers/phy/qualcomm/phy-qcom-qmp.c
drivers/phy/rockchip/phy-rockchip-emmc.c
drivers/phy/rockchip/phy-rockchip-inno-usb2.c
drivers/phy/rockchip/phy-rockchip-typec.c
drivers/phy/rockchip/phy-rockchip-usb.c
drivers/phy/tegra/xusb.c

index 0f4ac5d63cff93211b8e0864b1de3e0e24fecfb5..b074682d9dd88337ffc5672f5de956e4d0d760c1 100644 (file)
@@ -153,8 +153,8 @@ static int cygnus_pcie_phy_probe(struct platform_device *pdev)
                struct cygnus_pcie_phy *p;
 
                if (of_property_read_u32(child, "reg", &id)) {
-                       dev_err(dev, "missing reg property for %s\n",
-                               child->name);
+                       dev_err(dev, "missing reg property for %pOFn\n",
+                               child);
                        ret = -EINVAL;
                        goto put_child;
                }
index 8708ea3b4d6d44b5f9d38bba511bb1fbcc7121d5..ac57f5a41708bc4308ba247477796797e354bc7a 100644 (file)
@@ -600,8 +600,8 @@ static int brcm_sata_phy_probe(struct platform_device *pdev)
                struct brcm_sata_port *port;
 
                if (of_property_read_u32(child, "reg", &id)) {
-                       dev_err(dev, "missing reg property in node %s\n",
-                                       child->name);
+                       dev_err(dev, "missing reg property in node %pOFn\n",
+                                       child);
                        ret = -EINVAL;
                        goto put_child;
                }
index c1bb6725e48f1cb548f03f3d95945afc3cb71854..a91fc67fc4e0c6b1b20e405ce40780dfa85f4949 100644 (file)
@@ -231,14 +231,14 @@ static int phy_berlin_sata_probe(struct platform_device *pdev)
                struct phy_berlin_desc *phy_desc;
 
                if (of_property_read_u32(child, "reg", &phy_id)) {
-                       dev_err(dev, "missing reg property in node %s\n",
-                               child->name);
+                       dev_err(dev, "missing reg property in node %pOFn\n",
+                               child);
                        ret = -EINVAL;
                        goto put_child;
                }
 
                if (phy_id >= ARRAY_SIZE(phy_berlin_power_down_bits)) {
-                       dev_err(dev, "invalid reg in node %s\n", child->name);
+                       dev_err(dev, "invalid reg in node %pOFn\n", child);
                        ret = -EINVAL;
                        goto put_child;
                }
index 72efc2e14ab6e6e16a05236aecb43772bbdcb1db..7932931a3da30069710bd9c08fb09cfe08df3a45 100644 (file)
@@ -1400,7 +1400,7 @@ static int phy_pipe_clk_register(struct qcom_qmp *qmp, struct device_node *np)
 
        ret = of_property_read_string(np, "clock-output-names", &init.name);
        if (ret) {
-               dev_err(qmp->dev, "%s: No clock-output-names\n", np->name);
+               dev_err(qmp->dev, "%pOFn: No clock-output-names\n", np);
                return ret;
        }
 
index b237360f95f61a4a703d2db7175f9ad952a8b871..19bf84f0bc67265c0318b4d9d8a7d853c6903975 100644 (file)
@@ -337,8 +337,8 @@ static int rockchip_emmc_phy_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        if (of_property_read_u32(dev->of_node, "reg", &reg_offset)) {
-               dev_err(dev, "missing reg property in node %s\n",
-                       dev->of_node->name);
+               dev_err(dev, "missing reg property in node %pOFn\n",
+                       dev->of_node);
                return -EINVAL;
        }
 
index 5049dac79bd0f72d7f32f65e92694f7e9f167b53..24bd2717abdb9716d494e8d7077ebbee4b88de99 100644 (file)
@@ -1116,8 +1116,8 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
        }
 
        if (of_property_read_u32(np, "reg", &reg)) {
-               dev_err(dev, "the reg property is not assigned in %s node\n",
-                       np->name);
+               dev_err(dev, "the reg property is not assigned in %pOFn node\n",
+                       np);
                return -EINVAL;
        }
 
@@ -1143,8 +1143,8 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
        }
 
        if (!rphy->phy_cfg) {
-               dev_err(dev, "no phy-config can be matched with %s node\n",
-                       np->name);
+               dev_err(dev, "no phy-config can be matched with %pOFn node\n",
+                       np);
                return -EINVAL;
        }
 
index 76a4b58ec77172873e53e50abc3a6a02efeb1a9c..c57e496f0b0c52751531f84845cf2313dc3ce443 100644 (file)
@@ -1145,8 +1145,8 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev)
        }
 
        if (!tcphy->port_cfgs) {
-               dev_err(dev, "no phy-config can be matched with %s node\n",
-                       np->name);
+               dev_err(dev, "no phy-config can be matched with %pOFn node\n",
+                       np);
                return -EINVAL;
        }
 
@@ -1186,8 +1186,8 @@ static int rockchip_typec_phy_probe(struct platform_device *pdev)
                        continue;
 
                if (IS_ERR(phy)) {
-                       dev_err(dev, "failed to create phy: %s\n",
-                               child_np->name);
+                       dev_err(dev, "failed to create phy: %pOFn\n",
+                               child_np);
                        pm_runtime_disable(dev);
                        return PTR_ERR(phy);
                }
index 3378eeb7a562f196145f3a013f44ac701193f229..269c86329cb86e045c60526fff866e1aebb4e0d1 100644 (file)
@@ -208,8 +208,8 @@ static int rockchip_usb_phy_init(struct rockchip_usb_phy_base *base,
        rk_phy->np = child;
 
        if (of_property_read_u32(child, "reg", &reg_offset)) {
-               dev_err(base->dev, "missing reg property in node %s\n",
-                       child->name);
+               dev_err(base->dev, "missing reg property in node %pOFn\n",
+                       child);
                return -EINVAL;
        }
 
index de1b4ebe4de28356053b915458d756ccc87f6102..5b3b8863363ed79a87db6f49e98cb4e1ab337619 100644 (file)
@@ -115,8 +115,8 @@ int tegra_xusb_lane_parse_dt(struct tegra_xusb_lane *lane,
 
        err = match_string(lane->soc->funcs, lane->soc->num_funcs, function);
        if (err < 0) {
-               dev_err(dev, "invalid function \"%s\" for lane \"%s\"\n",
-                       function, np->name);
+               dev_err(dev, "invalid function \"%s\" for lane \"%pOFn\"\n",
+                       function, np);
                return err;
        }