diff options
author | Simon Glass <sjg@chromium.org> | 2018-11-18 08:14:30 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-11-29 09:30:05 -0700 |
commit | d0b4f68d199c075f5d734cf184f7eaf1a642083d (patch) | |
tree | 4c7b05c7d6d195b98514220b8f59ccc148d940d2 /drivers | |
parent | 499fde5c23921add3cf95fecfe0b03d717d5a33b (diff) |
dm: core: Export uclass_find_device_by_phandle()
This function may be useful to code outside of the code driver-model
implementation. Export it and add a test.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/core/uclass.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index d9c5719a87..9766aeabd1 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -354,10 +354,8 @@ done: } #if CONFIG_IS_ENABLED(OF_CONTROL) -static int uclass_find_device_by_phandle(enum uclass_id id, - struct udevice *parent, - const char *name, - struct udevice **devp) +int uclass_find_device_by_phandle(enum uclass_id id, struct udevice *parent, + const char *name, struct udevice **devp) { struct udevice *dev; struct uclass *uc; |