Merge branch 'of_get_available_child_by_name'
authorDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2025 13:43:56 +0000 (13:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Feb 2025 13:43:56 +0000 (13:43 +0000)
commit233a2b1480a0bdf6b40d4debf58a07084e9921ff
tree939a885bac9581321b629914c1fe8407e49bfd58
parent26db4dbb747813b5946aff31485873f071a10332
parent0584a917a2096a759976825e77d09ff215a7a543
Merge branch 'of_get_available_child_by_name'

Biju Das says:

====================
Add of_get_available_child_by_name()

There are lot of net drivers using of_get_child_by_name() followed by
of_device_is_available() to find the available child node by name for a
given parent. Provide a helper for these users to simplify the code.

v1->v2:
 * Make it as a series as per [1] to cover the dependency.
 * Added Rb tag from Rob for patch#1 and this patch can be merged through
   net as it is the main user.
 * Updated all the patches with patch suffix net-next
 * Dropped _free() usage.

[1]
https://lore.kernel.org/all/CAL_JsqLo4uSGYMcLXN=0iSUMHdW8RaGCY+o8ThQHq3_eUTV9wQ@mail.gmail.com/
====================

Signed-off-by: David S. Miller <davem@davemloft.net>