diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-12 13:59:52 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-23 10:36:33 +0530 |
commit | 2c685c214f2815c12f9d70422d85daa7f48003cf (patch) | |
tree | f21b5548140c59fe843cc2caa2e444e456ca2474 /include | |
parent | 446a9c6d1eb97fcedd6a94ac76d15e941a6087a8 (diff) |
lib: utils: Extend fdt_find_match() Implementation
We extend fdt_find_match() implementation by adding node offset
parameter which represents the first node to match from.
The improved fdt_find_match() can be used to find multiple
match nodes.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 42390e8..72fb167 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -28,7 +28,8 @@ struct platform_uart_data { const struct fdt_match *fdt_match_node(void *fdt, int nodeoff, const struct fdt_match *match_table); -int fdt_find_match(void *fdt, const struct fdt_match *match_table, +int fdt_find_match(void *fdt, int startoff, + const struct fdt_match *match_table, const struct fdt_match **out_match); int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr, |