diff options
author | Arnaud Giersch <arnaud.giersch@free.fr> | 2005-11-12 18:38:18 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-11-17 11:23:49 -0500 |
commit | 99289a4e8a9cb3fa6caa8fc4ebf57a33db497340 (patch) | |
tree | 53a149795f88ea1da576b4cec0d218cc998670a3 /include/asm-mips/io.h | |
parent | 59f145d28ce853b13dafdfab438c48f3ead0b38e (diff) |
[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/asm-mips/io.h')
-rw-r--r-- | include/asm-mips/io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index 3061870b7f6c..d42685747e7d 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h | |||
@@ -459,10 +459,10 @@ __BUILDIO(q, u64) | |||
459 | 459 | ||
460 | #define __BUILD_MEMORY_STRING(bwlq, type) \ | 460 | #define __BUILD_MEMORY_STRING(bwlq, type) \ |
461 | \ | 461 | \ |
462 | static inline void writes##bwlq(volatile void __iomem *mem, void *addr, \ | 462 | static inline void writes##bwlq(volatile void __iomem *mem, \ |
463 | unsigned int count) \ | 463 | const void *addr, unsigned int count) \ |
464 | { \ | 464 | { \ |
465 | volatile type *__addr = addr; \ | 465 | const volatile type *__addr = addr; \ |
466 | \ | 466 | \ |
467 | while (count--) { \ | 467 | while (count--) { \ |
468 | mem_write##bwlq(*__addr, mem); \ | 468 | mem_write##bwlq(*__addr, mem); \ |