commit | ae2efaced5af023dfd45f0dd9966f22cb3516f7a | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jun 23 15:38:37 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Tue Jul 21 17:39:22 2015 -0600 |
tree | 26da337c474cd8485f03b4088512fc832c0dd73a | |
parent | f204ff712729b504e6df20c7f1bd9b22abe7a1da [diff] |
dm: core: Add a function to find any device from device tree In some rare cases it is useful to be able to locate a device given a device tree node offset. An example is when you have an alias that points to a node and you want to find the associated device. The device may be SPI, MMC or something else, but you don't need to know the uclass to find it. Add a function to do a global search for a device, given its device tree offset. Signed-off-by: Simon Glass <sjg@chromium.org>