diff mbox

[U-Boot,09/11] fdt: Change fdt_pack_reg() to static and fix types

Message ID 1413360341-25828-9-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Jerry Van Baren
Headers show

Commit Message

Simon Glass Oct. 15, 2014, 8:05 a.m. UTC
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>
---

 common/fdt_support.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Anatolij Gustschin Oct. 17, 2014, 10:16 p.m. UTC | #1
On Wed, 15 Oct 2014 02:05:39 -0600
Simon Glass <sjg@chromium.org> wrote:

> 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>
> ---
> 
>  common/fdt_support.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Acked-by: Anatolij Gustschin <agust@denx.de>
diff mbox

Patch

diff --git a/common/fdt_support.c b/common/fdt_support.c
index b792bb4..ee514ae 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -372,8 +372,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
  */
-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");