diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-17 12:18:39 +0900 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-07-28 12:02:47 -0600 |
commit | fd73621cba2c4b20e8a65e0b4c40c9026018e434 (patch) | |
tree | 505f3cf5ab861ff1c84ee9172590fdb123209a96 /drivers/core/read.c | |
parent | 00b26f7cdb28c2b21eb016f1b52126a428b5022b (diff) | |
download | u-boot-fd73621cba2c4b20e8a65e0b4c40c9026018e434.tar.gz |
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 'drivers/core/read.c')
-rw-r--r-- | drivers/core/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/core/read.c b/drivers/core/read.c index eafe727f03..8570583693 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -114,7 +114,7 @@ int dev_read_phandle(struct udevice *dev) return fdt_get_phandle(gd->fdt_blob, ofnode_to_offset(node)); } -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) { return ofnode_get_property(dev_ofnode(dev), propname, lenp); } |