mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
mkimage: Update map_to_sysmem() to match its prototype
Update the version of this function in mkimage so that it uses a const pointer, as is done in the mapmem.h header file. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4219fd9a70
commit
26001ee047
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ static inline void *map_sysmem(ulong paddr, unsigned long len)
|
|||
return (void *)(uintptr_t)paddr;
|
||||
}
|
||||
|
||||
static inline ulong map_to_sysmem(void *ptr)
|
||||
static inline ulong map_to_sysmem(const void *ptr)
|
||||
{
|
||||
return (ulong)(uintptr_t)ptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue