dm: Allow a device to be found by its FDT offset
authorSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 12:55:14 +0000 (06:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:07:25 +0000 (14:07 +0100)
commitf4cdead24a1a0c39c29c04e107c2f98ba61c5da8
treecbabf26d3f1df2d80529543f5a4bcfeeef4a34f3
parentb7d665705ebb29f06616b7f365ab8732e9779bf6
dm: Allow a device to be found by its FDT offset

Each device that was bound from a device tree has an node that caused it to
be bound. Add functions that find and return a device based on a device tree
offset.

Signed-off-by: Simon Glass <sjg@chromium.org>
doc/driver-model/README.txt
drivers/core/uclass.c
include/dm/uclass.h
test/dm/test-fdt.c