[PATCH v5 01/14] dm: core: Add function to get child count of ofnode or device

Simon Glass sjg at chromium.org
Wed Apr 15 15:57:08 CEST 2020


On Thu, 9 Apr 2020 at 23:46, Chunfeng Yun <chunfeng.yun at mediatek.com> wrote:
>
> This patch add function used to get the child count of
> a ofnode or a device
>
> Signed-off-by: Chunfeng Yun <chunfeng.yun at mediatek.com>
> ---
> v4~v5: no changes
>
> v3:
>     1. add non/inline function dev_get_child_count() instead of macro suggested by Simon
>
> v2:
>     1. move ofnode_get_child_count() into ofnode.c suggested by Simon
>     2. add a new macro dev_get_child_count()
> ---
>  drivers/core/ofnode.c | 11 +++++++++++
>  drivers/core/read.c   |  5 +++++
>  include/dm/ofnode.h   |  8 ++++++++
>  include/dm/read.h     | 13 +++++++++++++
>  4 files changed, 37 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list