]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ASoC: fsl: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Mon, 7 Aug 2017 23:29:18 +0000 (18:29 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 8 Aug 2017 10:36:54 +0000 (11:36 +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>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_dma.c
sound/soc/fsl/imx-audmux.c

index ccadefceeff2c00e1e6e9ed2f74225d00a9a3cde..ed8ea002902d21843a8b36287dc2938a522663e2 100644 (file)
@@ -897,8 +897,8 @@ static int fsl_soc_dma_probe(struct platform_device *pdev)
 
        ret = of_address_to_resource(ssi_np, 0, &res);
        if (ret) {
-               dev_err(&pdev->dev, "could not determine resources for %s\n",
-                       ssi_np->full_name);
+               dev_err(&pdev->dev, "could not determine resources for %pOF\n",
+                       ssi_np);
                of_node_put(ssi_np);
                return ret;
        }
index fc57da341d6106e029c6766370421b9cdc97e8f5..392d5eef356d3a8a90cb2b4cb52c07d5520ebbc0 100644 (file)
@@ -268,13 +268,13 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev,
 
                ret = of_property_read_u32(child, "fsl,audmux-port", &port);
                if (ret) {
-                       dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%s\"\n",
-                                       child->full_name);
+                       dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%pOF\"\n",
+                                       child);
                        continue;
                }
                if (!of_property_read_bool(child, "fsl,port-config")) {
-                       dev_warn(&pdev->dev, "child node \"%s\" does not have property fsl,port-config\n",
-                                       child->full_name);
+                       dev_warn(&pdev->dev, "child node \"%pOF\" does not have property fsl,port-config\n",
+                                       child);
                        continue;
                }
 
@@ -292,15 +292,15 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev,
                }
 
                if (ret != -EOVERFLOW) {
-                       dev_err(&pdev->dev, "Failed to read u32 at index %d of child %s\n",
-                                       i, child->full_name);
+                       dev_err(&pdev->dev, "Failed to read u32 at index %d of child %pOF\n",
+                                       i, child);
                        continue;
                }
 
                if (audmux_type == IMX31_AUDMUX) {
                        if (i % 2) {
-                               dev_err(&pdev->dev, "One pdcr value is missing in child node %s\n",
-                                               child->full_name);
+                               dev_err(&pdev->dev, "One pdcr value is missing in child node %pOF\n",
+                                               child);
                                continue;
                        }
                        imx_audmux_v2_configure_port(port, ptcr, pdcr);