ofnode: add ofnode_by_prop_value()
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 20 Aug 2018 09:09:58 +0000 (11:09 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Sep 2018 14:12:21 +0000 (08:12 -0600)
commit61fba0faba432ae1cefc3984f863c28880d30329
treee55b6dd9e140132a6ed6c913c14251df0ffcb21c
parent427ddd84204cc0693e3f80f90f257b3d24b04307
ofnode: add ofnode_by_prop_value()

Adds ofnode_by_prop_value() to search for nodes with a given property
and value, an ofnode version of fdt_node_offset_by_prop_value().

Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/of_access.c
drivers/core/ofnode.c
include/dm/of_access.h
include/dm/ofnode.h