Skip to content

device property: Add scoped fwnode child node iterators

Jean-François Lessard linux-acpi linux-i2c lkml 4 versions – Applied

Status from this message: Applied to for-next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 25 repliesApplied
  2. v32 patches 6 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Changes in v4 from the cover letter

- drop the fwnode_for_each_named_child_node_scoped() variant (no user)
- add Reviewed-by tag to commit message of patch 2/2

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2device property: Add scoped fwnode child node iteratorsinclude/linux/property.h+10 -014 replies
2/2i2c: core: Use fwnode_for_each_child_node_scoped()drivers/i2c/i2c-core-slave.c+1 -22 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndy ShevchenkoDanilo KrummrichSakari Ailus
SeriesR-b
1/2R-b A-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/2] device property: Add scoped fwnode child node iterators

This series adds scoped versions of fwnode iterator macros and converts existing manual implementation to use them.

The first patch adds the infrastructure macros following existing patterns for scoped iterators in the kernel. The second patch demonstrates fwnode_for_each_child_node_scoped() usage by converting existing manual __free() usage in i2c-core-slave.c.

This series introduces infrastructure for the TM16XX driver series, being the first user of fwnode_for_each_available_child_node_scoped(). See the related patch series:
auxdisplay: Add TM16xx 7-segment LED matrix display controllers driver

Changes in v4:
- drop the fwnode_for_each_named_child_node_scoped() variant (no user)
- add Reviewed-by tag to commit message of patch 2/2

Changes in v3:
- Split into separate patches as requested
- Infrastructure addition in patch 1/2
- Usage example in patch 2/2

Changes in v2:
- replace manual __free(fwnode_handle) of i2c-core-slave.c with fwnode_for_each_child_node_scoped

Jean-François Lessard (2):
device property: Add scoped fwnode child node iterators
i2c: core: Use fwnode_for_each_child_node_scoped()

 drivers/i2c/i2c-core-slave.c |  3 +--
 include/linux/property.h     | 10 ++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0