diff options
author | Simon Glass | 2019-09-25 08:56:57 -0600 |
---|---|---|
committer | Bin Meng | 2019-10-11 17:37:19 +0800 |
commit | 9859dc76e784fb35e99a7c521a3bb2bfe2e6bc38 (patch) | |
tree | efd53f38bc822e3f68a688b86ce0f88198f9940b /include/iotrace.h | |
parent | 6498fda140f526f82f87e057afb61ca23904770f (diff) |
trace: Remove the const from write functions
The write functions do actually change the contents of memory so it is not
correct to use 'const'. Remove it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/iotrace.h')
-rw-r--r-- | include/iotrace.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/iotrace.h b/include/iotrace.h index be1d2753e19..380da1fbc2c 100644 --- a/include/iotrace.h +++ b/include/iotrace.h @@ -49,30 +49,29 @@ struct iotrace_record { #define readl(addr) iotrace_readl((const void *)(addr)) #undef writel -#define writel(val, addr) iotrace_writel(val, (const void *)(addr)) +#define writel(val, addr) iotrace_writel(val, (void *)(addr)) #undef readw #define readw(addr) iotrace_readw((const void *)(addr)) #undef writew -#define writew(val, addr) iotrace_writew(val, (const void *)(addr)) +#define writew(val, addr) iotrace_writew(val, (void *)(addr)) #undef readb #define readb(addr) iotrace_readb((const void *)(uintptr_t)addr) #undef writeb -#define writeb(val, addr) \ - iotrace_writeb(val, (const void *)(uintptr_t)addr) +#define writeb(val, addr) iotrace_writeb(val, (void *)(uintptr_t)addr) #endif /* Tracing functions which mirror their io.h counterparts */ u32 iotrace_readl(const void *ptr); -void iotrace_writel(ulong value, const void *ptr); +void iotrace_writel(ulong value, void *ptr); u16 iotrace_readw(const void *ptr); -void iotrace_writew(ulong value, const void *ptr); +void iotrace_writew(ulong value, void *ptr); u8 iotrace_readb(const void *ptr); -void iotrace_writeb(ulong value, const void *ptr); +void iotrace_writeb(ulong value, void *ptr); /** * iotrace_reset_checksum() - Reset the iotrace checksum |