summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-02-27 13:25:55 -0700
committerSimon Glass <sjg@chromium.org>2014-03-17 20:05:45 -0600
commit66bd1cff901c5b19b351c7b5ad48cee09c15d992 (patch)
tree8c881a23fe595e663206b96c7f00ff49498ca697 /arch/sandbox/cpu
parentbf64035a159f114d0fb93391acb7f5e73eb020e6 (diff)
downloadu-boot-imx-66bd1cff901c5b19b351c7b5ad48cee09c15d992.zip
u-boot-imx-66bd1cff901c5b19b351c7b5ad48cee09c15d992.tar.gz
u-boot-imx-66bd1cff901c5b19b351c7b5ad48cee09c15d992.tar.bz2
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>
Diffstat (limited to 'arch/sandbox/cpu')
-rw-r--r--arch/sandbox/cpu/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/cpu/cpu.c b/arch/sandbox/cpu/cpu.c
index 38019e0..3f4005b 100644
--- a/arch/sandbox/cpu/cpu.c
+++ b/arch/sandbox/cpu/cpu.c
@@ -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;
}