aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnaud Giersch <arnaud.giersch@free.fr>2005-11-13 00:38:18 +0100
committerRalf Baechle <ralf@linux-mips.org>2005-11-17 16:23:49 +0000
commit99289a4e8a9cb3fa6caa8fc4ebf57a33db497340 (patch)
tree53a149795f88ea1da576b4cec0d218cc998670a3 /include
parent59f145d28ce853b13dafdfab438c48f3ead0b38e (diff)
downloadkernel_samsung_smdk4412-99289a4e8a9cb3fa6caa8fc4ebf57a33db497340.zip
kernel_samsung_smdk4412-99289a4e8a9cb3fa6caa8fc4ebf57a33db497340.tar.gz
kernel_samsung_smdk4412-99289a4e8a9cb3fa6caa8fc4ebf57a33db497340.tar.bz2
[MIPS] Add const qualifier to writes##bwlq.
Add const qualifier to parameter addr of writes##bwlq. Signed-off-by: Arnaud Giersch <arnaud.giersch@free.fr> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-mips/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index 3061870..d426857 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -459,10 +459,10 @@ __BUILDIO(q, u64)
#define __BUILD_MEMORY_STRING(bwlq, type) \
\
-static inline void writes##bwlq(volatile void __iomem *mem, void *addr, \
- unsigned int count) \
+static inline void writes##bwlq(volatile void __iomem *mem, \
+ const void *addr, unsigned int count) \
{ \
- volatile type *__addr = addr; \
+ const volatile type *__addr = addr; \
\
while (count--) { \
mem_write##bwlq(*__addr, mem); \