]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fdt: Change fdt_pack_reg() to static and fix types
authorSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 00:58:55 +0000 (18:58 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 21 Nov 2014 03:43:18 +0000 (04:43 +0100)
This function is only called within this file so make it static. Also
fix its argument types to be consistent with its caller.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Tom Rini <trini@ti.com>
common/fdt_support.c

index 46a15e72a0c98a6afc84b3cfb5ac7838310629ff..f9b81c6800a7848ec59de5432692fdac9f77b716 100644 (file)
@@ -382,8 +382,8 @@ void do_fixup_by_compat_u32(void *fdt, const char *compat,
 /*
  * fdt_pack_reg - pack address and size array into the "reg"-suitable stream
  */
-static int fdt_pack_reg(const void *fdt, void *buf, uint64_t *address,
-                       uint64_t *size, int n)
+static int fdt_pack_reg(const void *fdt, void *buf, u64 *address, u64 *size,
+                       int n)
 {
        int i;
        int address_len = get_cells_len(fdt, "#address-cells");