summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-05-17 14:29:14 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-05-18 08:31:32 +0200
commitd0a6fd63f1cf6a5dac5ef40e26e5df7b9880c7f5 (patch)
tree32044f38cba7d8014e896c64b84aebcb31cb6edb /include
parent03f2a17b10d060ba545cb8e280c1092b5bfdae29 (diff)
downloadbarebox-d0a6fd63f1cf6a5dac5ef40e26e5df7b9880c7f5.tar.gz
barebox-d0a6fd63f1cf6a5dac5ef40e26e5df7b9880c7f5.tar.xz
of: Make of_property_get_value() public
Make of_property_get_value() public, so it can be used in other part of the system. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index fec51bb94f..7fc4b7791f 100644
--- a/include/of.h
+++ b/include/of.h
@@ -94,6 +94,12 @@ static inline void of_write_number(void *__cell, u64 val, int size)
}
}
+static inline const void *of_property_get_value(struct property *pp)
+{
+ return pp->value ? pp->value : pp->value_const;
+}
+
+
void of_print_property(const void *data, int len);
void of_print_cmdline(struct device_node *root);