mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
Use a const pointer for map_to_sysmem()
This function does not actually change the pointer contents, so use const so that functions which have a const pointer do not need to cast. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bf64035a15
commit
66bd1cff90
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ void *map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
|
|||
return (void *)(gd->arch.ram_buf + paddr);
|
||||
}
|
||||
|
||||
phys_addr_t map_to_sysmem(void *ptr)
|
||||
phys_addr_t map_to_sysmem(const void *ptr)
|
||||
{
|
||||
return (u8 *)ptr - gd->arch.ram_buf;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue