[PATCH net-next v2 1/7] of: base: Add of_get_available_child_by_name()

Simon Horman horms at kernel.org
Fri Feb 7 01:45:32 PST 2025


On Wed, Feb 05, 2025 at 12:42:21PM +0000, Biju Das wrote:
> There are lot of 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.
> 
> Suggested-by: Geert Uytterhoeven <geert+renesas at glider.be>
> Reviewed-by: Rob Herring <robh at kernel.org>
> Signed-off-by: Biju Das <biju.das.jz at bp.renesas.com>
> ---
> previous v2->v2
>  * Added Rb tag from Rob.
> v1->previous v2:
>  * Updated commit description.
>  * Updated kerneldoc comment block
>  * Avoided code duplication by using of_get_child_by_name().

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the linux-arm-kernel mailing list