[PATCH 03/11] ARM: exynos: Simplify with scoped for each OF child loop
Krzysztof Kozlowski
krzysztof.kozlowski at oss.qualcomm.com
Sat Jan 10 02:59:48 AEDT 2026
On 06/01/2026 11:11, Jonathan Cameron wrote:
>> - for_each_compatible_node(node, NULL, "samsung,exynos4210-sysram") {
>> + for_each_compatible_node_scoped(node, NULL, "samsung,exynos4210-sysram") {
>> struct resource res;
>> if (!of_device_is_available(node))
>> continue;
> No idea how common this pattern is, but maybe worth
> for_each_compatible_available_node_scoped() ?
> Bit of a pain as you'd need a of_find_compatible_available_node() helper.
> So I'll let you assess if there are enough instances of this to make it worthwhile.
I think there are only like two or three instances, so not really worth
the effort.
Best regards,
Krzysztof
More information about the Linuxppc-dev
mailing list