summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorAnup Patel <[email protected]>2020-04-24 18:35:25 +0530
committerAnup Patel <[email protected]>2020-05-01 09:40:21 +0530
commitdd33b9e0a152699416ade045ad6f630432e7f968 (patch)
treec81fd7a92b0433d6f7680ebaf79193639a732a31 /lib/utils
parenta39cd6fe4c263f00228daaefc41c2b03b96f784d (diff)
lib: utils: Make fdt_get_node_addr_size() public function
The fdt_get_node_addr_size() will be useful in FDT based simple driver frameworks so we make it a public function. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Alistair Francis <[email protected]>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/fdt/fdt_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c
index e8c927de..8fe4ace6 100644
--- a/lib/utils/fdt/fdt_helper.c
+++ b/lib/utils/fdt/fdt_helper.c
@@ -59,8 +59,8 @@ int fdt_find_match(void *fdt, const struct fdt_match *match_table,
return SBI_ENODEV;
}
-static int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
- unsigned long *size)
+int fdt_get_node_addr_size(void *fdt, int node, unsigned long *addr,
+ unsigned long *size)
{
int parent, len, i;
int cell_addr, cell_size;