Re: [PATCH v2 01/10] dm: core: Add function to get child count of ofnode or device

2020-03-23 Thread Chunfeng Yun
On Mon, 2020-03-23 at 09:36 -0600, Simon Glass wrote: > Hi Chunfeng, > > On Sat, 21 Mar 2020 at 02:52, Chunfeng Yun wrote: > > > > This patch add function used to get the child count of > > a ofnode or a device > > > > Signed-off-by: Chunfeng Yun > > --- > > v2: > > 1. move ofnode_get_child_

Re: [PATCH v2 01/10] dm: core: Add function to get child count of ofnode or device

2020-03-23 Thread Simon Glass
Hi Chunfeng, On Sat, 21 Mar 2020 at 02:52, Chunfeng Yun wrote: > > This patch add function used to get the child count of > a ofnode or a device > > Signed-off-by: Chunfeng Yun > --- > v2: > 1. move ofnode_get_child_count() into ofnode.c suggested by Simon > 2. add a new macro dev_get_ch

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

2020-03-21 Thread Chunfeng Yun
This patch add function used to get the child count of a ofnode or a device Signed-off-by: Chunfeng Yun --- 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 +++ include/dm/ofnode.h |