summaryrefslogtreecommitdiff
path: root/include/fdtdec.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-23 18:58:51 -0600
committerSimon Glass <sjg@chromium.org>2014-11-21 04:43:17 +0100
commit76489832b28d158dd341b8992006576584cd204b (patch)
tree4fa101cce03036a05e639dea3c30fe417d372a26 /include/fdtdec.h
parenta9e8e29101adcb0bfa1c39baba5fce6b9848678d (diff)
fdt: Use the correct return types for fdtdec_decode_region()
Use the correct FDT data types for this function. Also add more debugging. Acked-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r--include/fdtdec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h
index 4ae77be9ba..099930e7ee 100644
--- a/include/fdtdec.h
+++ b/include/fdtdec.h
@@ -595,12 +595,12 @@ const u8 *fdtdec_locate_byte_array(const void *blob, int node,
* @param blob FDT blob
* @param node node to examine
* @param prop_name name of property to find
- * @param ptrp returns pointer to region, or NULL if no address
- * @param size returns size of region
- * @return 0 if ok, -1 on error (propery not found)
+ * @param basep Returns base address of region
+ * @param size Returns size of region
+ * @return 0 if ok, -1 on error (property not found)
*/
-int fdtdec_decode_region(const void *blob, int node,
- const char *prop_name, void **ptrp, size_t *size);
+int fdtdec_decode_region(const void *blob, int node, const char *prop_name,
+ fdt_addr_t *basep, fdt_size_t *sizep);
/* A flash map entry, containing an offset and length */
struct fmap_entry {