
18 Jul
2015
18 Jul
'15
1:56 a.m.
On 23 June 2015 at 15:38, Simon Glass sjg@chromium.org wrote:
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
Changes in v3: None Changes in v2: None
drivers/core/device.c | 25 +++++++++++++++++++++++++ include/dm/device.h | 14 ++++++++++++++ 2 files changed, 39 insertions(+)
Applied to u-boot-dm.