summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Prusov <ivprusov@salutedevices.com>2023-11-14 14:02:47 +0300
committerTom Rini <trini@konsulko.com>2023-11-28 16:19:06 -0500
commit953970221980c677e0755d515b9e6fb2fbf2543e (patch)
tree708944d431d37e81ba66a80a8f506f54b8362f23
parent93e1552cb1cd80a348d1eb56a294585ed43a4c9d (diff)
downloadu-boot-953970221980c677e0755d515b9e6fb2fbf2543e.tar.gz
u-boot-953970221980c677e0755d515b9e6fb2fbf2543e.tar.bz2
u-boot-953970221980c677e0755d515b9e6fb2fbf2543e.zip
mips: io.h: Add const to reads functions params
Currently reads{b,w,l}() functions don't have const qualifier for their address parameter. Since asm-generic/io.h in Linux has const for all read functions, add it here as well to keep signatures in sync. Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
-rw-r--r--arch/mips/include/asm/io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index d3ad669301..12595c4334 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -405,7 +405,8 @@ static inline void writes##bwlq(volatile void __iomem *mem, \
} \
} \
\
-static inline void reads##bwlq(volatile void __iomem *mem, void *addr, \
+static inline void reads##bwlq(const volatile void __iomem *mem, \
+ void *addr, \
unsigned int count) \
{ \
volatile type *__addr = addr; \