ASoC: fsl: Convert to using %pOF instead of full_name
Subsystems (4)
PATCH v3 1/1 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.
---
v3: Split ASoC changes to separate patch
sound/soc/fsl/fsl_dma.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-)
sound/soc/fsl/fsl_dma.c +2 -2
@@ -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; }
sound/soc/fsl/imx-audmux.c +8 -8
@@ -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);
Signature · 1 line
2.11.0
Quoted 7 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Timur Tabi <[email protected]>Cc Nicolin Chen <[email protected]>
Thanks
Quoted 73 lines
Cc Xiubo Li <[email protected]>Cc Fabio Estevam <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>---
v3: Split ASoC changes to separate patchsound/soc/fsl/fsl_dma.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-)sound/soc/fsl/fsl_dma.c +2
-2@@ -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; }sound/soc/fsl/imx-audmux.c +8
-8@@ -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);Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: fsl: Convert to using %pOF instead of full_name" to the asoc tree
In reply to Rob HerringThe patch
ASoC: fsl: Convert to using %pOF instead of full_name
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
06d15a2ede999a77f0d05aa600ed473d90d9a909Mon Sep 17 00:00:00 2001
From: Rob Herring <[email protected]>
Date: Mon, 7 Aug 2017 18:29:18 -0500
Subject: [PATCH] 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.
--- sound/soc/fsl/fsl_dma.c | 4 ++-- sound/soc/fsl/imx-audmux.c | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-)
sound/soc/fsl/fsl_dma.c +2 -2
@@ -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; }
sound/soc/fsl/imx-audmux.c +8 -8
@@ -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);
Signature · 1 line
2.13.2