summaryrefslogtreecommitdiffstats
path: root/include/dm/lists.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-06-11 23:29:54 -0600
committerSimon Glass <sjg@chromium.org>2014-06-20 11:56:50 -0600
commitf2bc6fc3316d85dcd36d88788c3c412213c7823c (patch)
tree37f8fe708242e5e0f66fce40efbcbfbfc5e6e3f6 /include/dm/lists.h
parent47f3d3c80bfe70130054cb61ebbdbbfc61dc8267 (diff)
downloadtalos-obmc-uboot-f2bc6fc3316d85dcd36d88788c3c412213c7823c.tar.gz
talos-obmc-uboot-f2bc6fc3316d85dcd36d88788c3c412213c7823c.zip
dm: Tidy up four minor code nits
There is a spelling mistake and two functions are missing comments altogether. Also the flags declaration is correct, but doesn't follow style. Finally, the uclass_get_device() function has some errors in its documentation. Fix these problems. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/dm/lists.h')
-rw-r--r--include/dm/lists.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/dm/lists.h b/include/dm/lists.h
index 7feba4b00f..49d87e6176 100644
--- a/include/dm/lists.h
+++ b/include/dm/lists.h
@@ -32,8 +32,28 @@ struct driver *lists_driver_lookup_name(const char *name);
*/
struct uclass_driver *lists_uclass_lookup(enum uclass_id id);
+/**
+ * lists_bind_drivers() - search for and bind all drivers to parent
+ *
+ * This searches the U_BOOT_DEVICE() structures and creates new devices for
+ * each one. The devices will have @parent as their parent.
+ *
+ * @parent: parent driver (root)
+ * @early_only: If true, bind only drivers with the DM_INIT_F flag. If false
+ * bind all drivers.
+ */
int lists_bind_drivers(struct udevice *parent);
+/**
+ * lists_bind_fdt() - bind a device tree node
+ *
+ * This creates a new device bound to the given device tree node, with
+ * @parent as its parent.
+ *
+ * @parent: parent driver (root)
+ * @blob: device tree blob
+ * @offset: offset of this device tree node
+ */
int lists_bind_fdt(struct udevice *parent, const void *blob, int offset);
#endif
OpenPOWER on IntegriCloud