Commit ec002119cf30a7e7ef721071d890a0d8248232da
1 parent
38d21b418d
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
fdt: Update fdt_get_base_address() to use const
This function does not change the device tree so adjust it to use const for this parameter. Signed-off-by: Simon Glass <sjg@chromium.org>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
common/fdt_support.c
include/fdt_support.h
| ... | ... | @@ -207,7 +207,7 @@ |
| 207 | 207 | |
| 208 | 208 | int fdt_verify_alias_address(void *fdt, int anode, const char *alias, |
| 209 | 209 | u64 addr); |
| 210 | -u64 fdt_get_base_address(void *fdt, int node); | |
| 210 | +u64 fdt_get_base_address(const void *fdt, int node); | |
| 211 | 211 | int fdt_read_range(void *fdt, int node, int n, uint64_t *child_addr, |
| 212 | 212 | uint64_t *addr, uint64_t *len); |
| 213 | 213 |