Make of_property_get_value() public, so it can be used in other part of the system. Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> --- drivers/of/base.c | 5 ----- include/of.h | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 4bcc11364..fc01a99ef 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 fec51bb94..7fc4b7791 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); -- 2.17.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox