[PATCH v3 1/4] dm: core: Add of_match_node helper function
Simon Glass
sjg at chromium.org
Sat Nov 14 16:17:00 CET 2020
On Wed, 4 Nov 2020 at 04:56, Biju Das <biju.das.jz at bp.renesas.com> wrote:
>
> Add of_match_node() helper function to iterate over the device tree
> and tell if a device_node has a matching of_match structure.
>
> Signed-off-by: Biju Das <biju.das.jz at bp.renesas.com>
> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj at bp.renesas.com>
> ---
> v2->v3:
> * Added a test case for of_match_node helper function.
> (Ref: https://patchwork.ozlabs.org/project/uboot/patch/20201102150959.4793-2-biju.das.jz@bp.renesas.com/)
> v1->v2:
> * No Change.
> ---
> drivers/core/device.c | 21 +++++++++++++++++++++
> include/dm/device.h | 13 +++++++++++++
> test/dm/core.c | 31 +++++++++++++++++++++++++++++++
> 3 files changed, 65 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list