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:
parent
bfbfab047e
commit
361b5e7d80
2 changed files with 3 additions and 1 deletions
2
dtc.h
2
dtc.h
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue