Thread (12 messages) 12 messages, 5 authors, 2025-05-26

Re: [PATCH v2 1/6] ASoC: ppc: Use helper function for_each_child_of_node_scoped()

From: Mark Brown <broonie@kernel.org>
Date: 2025-05-22 10:00:45
Also in: imx, linux-amlogic, linux-arm-kernel, linux-arm-msm, linux-renesas-soc, linux-sound, lkml

On Thu, May 22, 2025 at 01:02:54PM +0800, Ai Chao wrote:
The for_each_child_of_node_scoped() helper provides a scope-based
clean-up functionality to put the device_node automatically, and
as such, there is no need to call of_node_put() directly.

Thus, use this helper to simplify the code.

Signed-off-by: Ai Chao <redacted>
---
 sound/ppc/tumbler.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
This is for ALSA, not ASoC (same for patch 2).

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help