summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--drivers/of/base.c5
-rw-r--r--include/of.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 4bcc113645..fc01a99ef2 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -129,11 +129,6 @@ struct property *of_find_property(const struct device_node *np,
}
EXPORT_SYMBOL(of_find_property);
-static const void *of_property_get_value(struct property *pp)
-{
- return pp->value ? pp->value : pp->value_const;
-}
-
static void of_alias_add(struct alias_prop *ap, struct device_node *np,
int id, const char *stem, int stem_len)
{
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);