Make type_marker_length helper public

Make type_marker_length available to other users of TYPE_* markers.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Rob Herring 2018-09-11 15:41:30 -05:00 committed by David Gibson
parent bfbfab047e
commit 361b5e7d80
2 changed files with 3 additions and 1 deletions

2
dtc.h
View file

@ -108,6 +108,8 @@ struct data {
for_each_marker(m) \
if ((m)->type == (t))
size_t type_marker_length(struct marker *m);
void data_free(struct data d);
struct data data_grow_for(struct data d, int xlen);

View file

@ -145,7 +145,7 @@ static struct marker *next_type_marker(struct marker *m)
return m;
}
static size_t type_marker_length(struct marker *m)
size_t type_marker_length(struct marker *m)
{
struct marker *next = next_type_marker(m->next);