Commit 46595ffb authored by John Bowler's avatar John Bowler Committed by Russell King

[ARM] arch-ixp4xx/io.h: make const args const to remove compiler warning

Compiler warning fix; the inline callers of these APIs were changed
to have const vaddr parameters.
Signed-off-by: default avatarJohn Bowler <jbowler@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 77bb86a1
...@@ -113,7 +113,7 @@ __ixp4xx_writeb(u8 value, u32 addr) ...@@ -113,7 +113,7 @@ __ixp4xx_writeb(u8 value, u32 addr)
} }
static inline void static inline void
__ixp4xx_writesb(u32 bus_addr, u8 *vaddr, int count) __ixp4xx_writesb(u32 bus_addr, const u8 *vaddr, int count)
{ {
while (count--) while (count--)
writeb(*vaddr++, bus_addr); writeb(*vaddr++, bus_addr);
...@@ -136,7 +136,7 @@ __ixp4xx_writew(u16 value, u32 addr) ...@@ -136,7 +136,7 @@ __ixp4xx_writew(u16 value, u32 addr)
} }
static inline void static inline void
__ixp4xx_writesw(u32 bus_addr, u16 *vaddr, int count) __ixp4xx_writesw(u32 bus_addr, const u16 *vaddr, int count)
{ {
while (count--) while (count--)
writew(*vaddr++, bus_addr); writew(*vaddr++, bus_addr);
...@@ -154,7 +154,7 @@ __ixp4xx_writel(u32 value, u32 addr) ...@@ -154,7 +154,7 @@ __ixp4xx_writel(u32 value, u32 addr)
} }
static inline void static inline void
__ixp4xx_writesl(u32 bus_addr, u32 *vaddr, int count) __ixp4xx_writesl(u32 bus_addr, const u32 *vaddr, int count)
{ {
while (count--) while (count--)
writel(*vaddr++, bus_addr); writel(*vaddr++, bus_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment