summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-07-17 03:18:39 (GMT)
committerSimon Glass <sjg@chromium.org>2017-07-28 18:02:47 (GMT)
commitfd73621cba2c4b20e8a65e0b4c40c9026018e434 (patch)
tree505f3cf5ab861ff1c84ee9172590fdb123209a96 /include/dm
parent00b26f7cdb28c2b21eb016f1b52126a428b5022b (diff)
downloadu-boot-fsl-qoriq-fd73621cba2c4b20e8a65e0b4c40c9026018e434.tar.xz
dm: ofnode: change return type of dev_read_prop() to opaque pointer
DT property values can be strings as well as integers. This is why of_get_property/fdt_getprop returns an opaque pointer. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/read.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/dm/read.h b/include/dm/read.h
index b86a2f5..edf468f 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -266,7 +266,7 @@ int dev_read_phandle(struct udevice *dev);
* @lenp: place to put length on success
* @return pointer to property, or NULL if not found
*/
-const u32 *dev_read_prop(struct udevice *dev, const char *propname, int *lenp);
+const void *dev_read_prop(struct udevice *dev, const char *propname, int *lenp);
/**
* dev_read_alias_seq() - Get the alias sequence number of a node
@@ -443,8 +443,8 @@ static inline int dev_read_phandle(struct udevice *dev)
return fdt_get_phandle(gd->fdt_blob, dev_of_offset(dev));
}
-static inline const u32 *dev_read_prop(struct udevice *dev,
- const char *propname, int *lenp)
+static inline const void *dev_read_prop(struct udevice *dev,
+ const char *propname, int *lenp)
{
return ofnode_get_property(dev_ofnode(dev), propname, lenp);
}