[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [RFC PATCH 08/13] xen/dts: make the dt_find_property function to be global



This patch makes possible to use the dt_find_property function
outside the device tree module.

Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@xxxxxxxxxxxxxxx>
---
 xen/common/device_tree.c      | 2 +-
 xen/include/xen/device_tree.h | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c
index f0bd7b9..5fbb0c1 100644
--- a/xen/common/device_tree.c
+++ b/xen/common/device_tree.c
@@ -522,7 +522,7 @@ static void __init *unflatten_dt_alloc(unsigned long *mem, 
unsigned long size,
 }
 
 /* Find a property with a given name for a given node and return it. */
-static const struct dt_property *
+const struct dt_property *
 dt_find_property(const struct dt_device_node *np,
                  const char *name,
                  u32 *lenp)
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h
index 99de53f..508d840 100644
--- a/xen/include/xen/device_tree.h
+++ b/xen/include/xen/device_tree.h
@@ -344,6 +344,15 @@ struct dt_device_node *dt_find_compatible_node(struct 
dt_device_node *from,
 
 /**
  * Find a property with a given name for a given node
+ * and return it.
+ */
+const struct dt_property *dt_find_property(const struct dt_device_node *np,
+                                           const char *name,
+                                           u32 *lenp);
+
+
+/**
+ * Find a property with a given name for a given node
  * and return the value.
  */
 const void *dt_get_property(const struct dt_device_node *np,
-- 
1.9.1


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.