diff options
author | Simon Glass <sjg@chromium.org> | 2013-11-07 09:31:58 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2013-11-21 16:54:26 -0700 |
commit | ed072b96efd7a5de51cef01c3d4bed4db0e391f0 (patch) | |
tree | e8cabd63bad138e36ce9531539deca401f54596e /arch/sandbox/include/asm/io.h | |
parent | 370b6c5c4d764192399a220095a2dd1054314147 (diff) |
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 'arch/sandbox/include/asm/io.h')
-rw-r--r-- | arch/sandbox/include/asm/io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/io.h b/arch/sandbox/include/asm/io.h index 9ac6a5f00d..7956041171 100644 --- a/arch/sandbox/include/asm/io.h +++ b/arch/sandbox/include/asm/io.h @@ -38,6 +38,6 @@ static inline void unmap_sysmem(const void *vaddr) } /* Map from a pointer to our RAM buffer */ -phys_addr_t map_to_sysmem(void *ptr); +phys_addr_t map_to_sysmem(const void *ptr); #endif |