dm: core: Provide ofnode_name_eq_unit() to accept a unit address
authorSimon Glass <sjg@chromium.org>
Sat, 11 Jan 2025 00:00:28 +0000 (17:00 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2025 23:08:24 +0000 (17:08 -0600)
commitaacc05b07d28e01bbbaf9037b3e8e1275e48701f
tree4af4bd71b7f85f818ed1defb81f60e037d6735b2
parentff698f2ddbcce5601a19fd61bef45aedd3d59cc6
dm: core: Provide ofnode_name_eq_unit() to accept a unit address

When a unit-address is provided, use it to match against the node
name.

Since this increases code size, put it into a separate function.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/ofnode.c
include/dm/ofnode.h
test/dm/core.c