1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00

sandbox: Make map_to_sysmem() use a constant pointer

Very often a constant pointer is passed to this function, so we should
declare this, since map_to_sysmem() does not change the pointer.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2013-11-07 09:31:58 -07:00
parent 370b6c5c4d
commit ed072b96ef
2 changed files with 2 additions and 2 deletions

View File

@@ -923,7 +923,7 @@ static inline void unmap_sysmem(const void *vaddr)
{
}
static inline phys_addr_t map_to_sysmem(void *ptr)
static inline phys_addr_t map_to_sysmem(const void *ptr)
{
return (phys_addr_t)(uintptr_t)ptr;
}