Skip to content

Commit

Permalink
of: Make of_property_get_value() public
Browse files Browse the repository at this point in the history
Make of_property_get_value() public, so it can be used in other part
of the system.

Signed-off-by: Andrey Smirnov <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
ndreys authored and saschahauer committed May 18, 2018
1 parent 03f2a17 commit d0a6fd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/of/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
6 changes: 6 additions & 0 deletions include/of.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d0a6fd6

Please sign in to comment.