diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-04-24 14:11:06 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-01 07:06:13 +0300 |
commit | e3ad7c13a07275df7f3dbee68e3e95d73d7a1e0e (patch) | |
tree | e5b55b15666060006d10e9c93286766b5d38bb69 /lib/utils/fdt | |
parent | 243b0d0c0c74c7d5281b0748a779f587263f1d21 (diff) | |
download | opensbi-e3ad7c13a07275df7f3dbee68e3e95d73d7a1e0e.tar.xz |
lib: utils: Rename fdt_parse_clint() to fdt_parse_compat_addr()
The fdt_parse_clint() is quite generic and can be used for other
types of devices so we rename it to fdt_parse_compat_addr().
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'lib/utils/fdt')
-rw-r--r-- | lib/utils/fdt/fdt_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/fdt/fdt_helper.c b/lib/utils/fdt/fdt_helper.c index 4757f19..573cc71 100644 --- a/lib/utils/fdt/fdt_helper.c +++ b/lib/utils/fdt/fdt_helper.c @@ -142,8 +142,8 @@ int fdt_parse_plic(void *fdt, struct platform_plic_data *plic, return 0; } -int fdt_parse_clint(void *fdt, unsigned long *clint_addr, - const char *compatible) +int fdt_parse_compat_addr(void *fdt, unsigned long *addr, + const char *compatible) { int nodeoffset, rc; @@ -151,8 +151,8 @@ int fdt_parse_clint(void *fdt, unsigned long *clint_addr, if (nodeoffset < 0) return nodeoffset; - rc = fdt_get_node_addr_size(fdt, nodeoffset, clint_addr, NULL); - if (rc < 0 || !clint_addr) + rc = fdt_get_node_addr_size(fdt, nodeoffset, addr, NULL); + if (rc < 0 || !addr) return SBI_ENODEV; return 0; |