• Simon Glass's avatar
    dm: core: Add a function to find any device from device tree · 2693047a
    Simon Glass authored
    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
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>