# Re: \[PATCH v6 02/10\] property: Add functions to iterate named child

- From: Jonathan Cameron \<jic23@kernel.org\>
- Date: 2025-03-10 20:20:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/03/2965684
- Thread: https://ratatoskr.run/linux-iio/2025/03/2964956/t.md

```text

> 
> > +			if (!fwnode_name_eq(child, name)) { } else  
> 
> Ditto.
> 
> Note, I believe this won't get v6.15-rc1, so there will be for_each_if()
> available and these will become

Unless this cycle goes long (i.e. an rc8) very unlikely I'll sneak
the series in now due to lack of time to soak in next.

> 
> #define fwnode_for_each_named_child_node(fwnode, child, name)	\
> 	fwnode_for_each_child_node(fwnode, child)		\
> 		for_each_if(fwnode_name_eq(child, name))
> 
> and so on...

Nice - first time I've seen this :)

Jonathan
```
