]> git.sur5r.net Git - u-boot/blobdiff - include/dm/lists.h
common/memsize.c: Increase save array for supporting memory size > 4GB
[u-boot] / include / dm / lists.h
index 61610e69aa551532927f7875227c31f3c980784a..13d1516a121934ca280fdba32ee772248ab4e3fc 100644 (file)
@@ -1,15 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (c) 2013 Google, Inc
  *
  * (C) Copyright 2012
  * Pavel Herrmann <morpheus.ibis@gmail.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef _DM_LISTS_H_
 #define _DM_LISTS_H_
 
+#include <dm/ofnode.h>
 #include <dm/uclass-id.h>
 
 /**
@@ -51,14 +51,12 @@ int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only);
  * @parent as its parent.
  *
  * @parent: parent device (root)
- * @blob: device tree blob
- * @offset: offset of this device tree node
+ * @node: device tree node to bind
  * @devp: if non-NULL, returns a pointer to the bound device
  * @return 0 if device was bound, -EINVAL if the device tree is invalid,
  * other -ve value on error
  */
-int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
-                  struct udevice **devp);
+int lists_bind_fdt(struct udevice *parent, ofnode node, struct udevice **devp);
 
 /**
  * device_bind_driver() - bind a device to a driver
@@ -68,7 +66,7 @@ int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
  * @parent:    Parent device
  * @drv_name:  Name of driver to attach to this parent
  * @dev_name:  Name of the new device thus created
- * @devp:      Returns the newly bound device
+ * @devp:      If non-NULL, returns the newly bound device
  */
 int device_bind_driver(struct udevice *parent, const char *drv_name,
                       const char *dev_name, struct udevice **devp);
@@ -83,10 +81,10 @@ int device_bind_driver(struct udevice *parent, const char *drv_name,
  * @drv_name:  Name of driver to attach to this parent
  * @dev_name:  Name of the new device thus created
  * @node:      Device tree node
- * @devp:      Returns the newly bound device
+ * @devp:      If non-NULL, returns the newly bound device
  */
 int device_bind_driver_to_node(struct udevice *parent, const char *drv_name,
-                              const char *dev_name, int node,
+                              const char *dev_name, ofnode node,
                               struct udevice **devp);
 
 #endif