dm: core: Add a way to find an ofnode by compatible string
authorSimon Glass <sjg@chromium.org>
Mon, 11 Jun 2018 19:07:13 +0000 (13:07 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 9 Jul 2018 15:11:00 +0000 (09:11 -0600)
commitc60f671b65a8b336c3533fcf0f0ee45dff287ff7
treea7c4b6ace5eccc2a9f79d3eac7171b3418741c58
parentc98ad4434c1a680915d10e5696e6bee9c81044d5
dm: core: Add a way to find an ofnode by compatible string

Add an ofnode_by_compatible() to allow iterating through ofnodes with a
given compatible string.

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