Commit ec002119cf30a7e7ef721071d890a0d8248232da

Authored by Simon Glass
1 parent 38d21b418d

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
... ... @@ -1539,7 +1539,7 @@
1539 1539 /*
1540 1540 * Returns the base address of an SOC or PCI node
1541 1541 */
1542   -u64 fdt_get_base_address(void *fdt, int node)
  1542 +u64 fdt_get_base_address(const void *fdt, int node)
1543 1543 {
1544 1544 int size;
1545 1545 u32 naddr;
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