diff options
author | Simon Glass <sjg@chromium.org> | 2014-02-27 13:25:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-03-17 20:05:45 -0600 |
commit | 66bd1cff901c5b19b351c7b5ad48cee09c15d992 (patch) | |
tree | 8c881a23fe595e663206b96c7f00ff49498ca697 /arch | |
parent | bf64035a159f114d0fb93391acb7f5e73eb020e6 (diff) | |
download | u-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')
-rw-r--r-- | arch/sandbox/cpu/cpu.c | 2 |
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; } |