Re: [U-Boot] [PATCH v3 2/4] dm: add dev_get_addr prototype

2015-01-21 Thread Igor Grinberg

On 01/21/15 13:09, Peng Fan wrote:
 Signed-off-by: Peng Fan peng@freescale.com

I think this should be a part of the first patch, anyway:

Acked-by: Igor Grinberg grinb...@compulab.co.il

 ---
  include/dm/device.h | 9 +
  1 file changed, 9 insertions(+)
 
 diff --git a/include/dm/device.h b/include/dm/device.h
 index 13598a1..ee00c4d 100644
 --- a/include/dm/device.h
 +++ b/include/dm/device.h
 @@ -322,4 +322,13 @@ int device_find_first_child(struct udevice *parent, 
 struct udevice **devp);
   */
  int device_find_next_child(struct udevice **devp);
  
 +
 +/**
 + * dev_get_addr() - Get the reg property of a device
 + *
 + * @dev: Pointer to a device. Returns reg address, or NULL if no DT
 + *
 + * @return addr, or NULL if NO DT
 + */
 +void *dev_get_addr(struct udevice *dev);
  #endif
 

-- 
Regards,
Igor.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v3 2/4] dm: add dev_get_addr prototype

2015-01-21 Thread Peng Fan
Signed-off-by: Peng Fan peng@freescale.com
---
 include/dm/device.h | 9 +
 1 file changed, 9 insertions(+)

diff --git a/include/dm/device.h b/include/dm/device.h
index 13598a1..ee00c4d 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -322,4 +322,13 @@ int device_find_first_child(struct udevice *parent, struct 
udevice **devp);
  */
 int device_find_next_child(struct udevice **devp);
 
+
+/**
+ * dev_get_addr() - Get the reg property of a device
+ *
+ * @dev: Pointer to a device. Returns reg address, or NULL if no DT
+ *
+ * @return addr, or NULL if NO DT
+ */
+void *dev_get_addr(struct udevice *dev);
 #endif
-- 
1.8.4


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot