[PATCH v4 0/4] Use helper function for_each_child_of_node_scoped()

Ai Chao aichao at kylinos.cn
Mon Jun 2 22:51:05 PDT 2025


This patch series introduces wrapper functions for_each_child_of_node_scoped().

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.

Summary:

 - Patch 1 ALSA: ppc: Use helper function for_each_child_of_node_scoped()

 - Patch 2 ASoC: renesas: Use helper function for_each_child_of_node_scoped()

 - Patch 3 ASoC: meson: Use helper function for_each_child_of_node_scoped()

 - Patch 4 ASoC: imx-card: Use helper function for_each_child_of_node_scoped()

---
Changes in V4:
 - Remove patch ALSA: aoa: Use helper function for_each_child_of_node_scoped()
 - Remove Patch ASoC: qcom: Use helper function for_each_child_of_node_scoped()

Changes in v3:
 - Change Patch name ASoC to ALSA for patch 1,2.
 - Change commit message information.
 - for_each_child_of_node_scoped() instead of
   for_each_child_of_node() in i2cbus_add_dev().

Changes in v2:
 - Fix error reported by kernel test rebot
 - Keep "node"
---

 sound/ppc/tumbler.c                |  5 ++---
 sound/soc/fsl/imx-card.c           | 13 +++++------
 sound/soc/meson/axg-card.c         |  3 +--
 sound/soc/meson/meson-card-utils.c | 16 +++++---------
 sound/soc/renesas/rcar/core.c      | 35 ++++++++++--------------------
 sound/soc/renesas/rcar/ctu.c       |  8 ++-----
 sound/soc/renesas/rcar/dma.c       |  4 +---
 sound/soc/renesas/rcar/dvc.c       |  8 ++-----
 sound/soc/renesas/rcar/mix.c       |  8 ++-----
 sound/soc/renesas/rcar/src.c       | 10 ++-------
 sound/soc/renesas/rcar/ssi.c       | 18 +++++----------
 sound/soc/renesas/rcar/ssiu.c      |  7 ++----
 12 files changed, 40 insertions(+), 95 deletions(-)

-- 
2.47.1




More information about the linux-amlogic mailing list