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
Also in
linux-acpi, linux-devicetree, linux-iio, lkml
Reply to
Andy Shevchenko, 2025-03-10
quoted
+			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
Thread (11 messages) 11 messages, 4 authors, last reply 2025-03-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help