提交 41f09bbe 编写于 作者: S Simon Glass

fdt: Change fdt_pack_reg() to static and fix types

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: NSimon Glass <sjg@chromium.org>
Acked-by: NAnatolij Gustschin <agust@denx.de>
Reviewed-by: NTom Rini <trini@ti.com>
上级 c654b517
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册