From: Weijie Gao Date: Wed, 15 Apr 2020 14:56:48 +0800 Subject: [PATCH v3 1/9] dm: core: Add function to get child count of ofnode or device In-Reply-To: <1585209718-28614-2-git-send-email-chunfeng.yun@mediatek.com> References: <1585209718-28614-1-git-send-email-chunfeng.yun@mediatek.com> <1585209718-28614-2-git-send-email-chunfeng.yun@mediatek.com> Message-ID: <1586933808.26858.108.camel@mcddlt001> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2020-03-26 at 16:01 +0800, Chunfeng Yun wrote: > This patch add function used to get the child count of > a ofnode or a device > > Signed-off-by: Chunfeng Yun > --- > 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: Weijie Gao