summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-11-07 09:31:58 -0700
committerSimon Glass <sjg@chromium.org>2013-11-21 16:54:26 -0700
commited072b96efd7a5de51cef01c3d4bed4db0e391f0 (patch)
treee8cabd63bad138e36ce9531539deca401f54596e /include/common.h
parent370b6c5c4d764192399a220095a2dd1054314147 (diff)
downloadu-boot-imx-ed072b96efd7a5de51cef01c3d4bed4db0e391f0.zip
u-boot-imx-ed072b96efd7a5de51cef01c3d4bed4db0e391f0.tar.gz
u-boot-imx-ed072b96efd7a5de51cef01c3d4bed4db0e391f0.tar.bz2
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>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 409515f..8ca67f6 100644
--- a/include/common.h
+++ b/include/common.h
@@ -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;
}