ASoC: fsl: Convert to using %pOF instead of full_name

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>
This commit is contained in:
Rob Herring 2017-08-07 18:29:18 -05:00 committed by Mark Brown
parent 29a22ebfa4
commit 06d15a2ede
2 changed files with 10 additions and 10 deletions

View File

@ -897,8 +897,8 @@ static int fsl_soc_dma_probe(struct platform_device *pdev)
ret = of_address_to_resource(ssi_np, 0, &res); ret = of_address_to_resource(ssi_np, 0, &res);
if (ret) { if (ret) {
dev_err(&pdev->dev, "could not determine resources for %s\n", dev_err(&pdev->dev, "could not determine resources for %pOF\n",
ssi_np->full_name); ssi_np);
of_node_put(ssi_np); of_node_put(ssi_np);
return ret; return ret;
} }

View 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); ret = of_property_read_u32(child, "fsl,audmux-port", &port);
if (ret) { if (ret) {
dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%s\"\n", dev_warn(&pdev->dev, "Failed to get fsl,audmux-port of child node \"%pOF\"\n",
child->full_name); child);
continue; continue;
} }
if (!of_property_read_bool(child, "fsl,port-config")) { if (!of_property_read_bool(child, "fsl,port-config")) {
dev_warn(&pdev->dev, "child node \"%s\" does not have property fsl,port-config\n", dev_warn(&pdev->dev, "child node \"%pOF\" does not have property fsl,port-config\n",
child->full_name); child);
continue; continue;
} }
@ -292,15 +292,15 @@ static int imx_audmux_parse_dt_defaults(struct platform_device *pdev,
} }
if (ret != -EOVERFLOW) { if (ret != -EOVERFLOW) {
dev_err(&pdev->dev, "Failed to read u32 at index %d of child %s\n", dev_err(&pdev->dev, "Failed to read u32 at index %d of child %pOF\n",
i, child->full_name); i, child);
continue; continue;
} }
if (audmux_type == IMX31_AUDMUX) { if (audmux_type == IMX31_AUDMUX) {
if (i % 2) { if (i % 2) {
dev_err(&pdev->dev, "One pdcr value is missing in child node %s\n", dev_err(&pdev->dev, "One pdcr value is missing in child node %pOF\n",
child->full_name); child);
continue; continue;
} }
imx_audmux_v2_configure_port(port, ptcr, pdcr); imx_audmux_v2_configure_port(port, ptcr, pdcr);