]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: io.h: Add const to reads functions params
authorIgor Prusov <ivprusov@salutedevices.com>
Tue, 14 Nov 2023 11:02:47 +0000 (14:02 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 28 Nov 2023 21:19:06 +0000 (16:19 -0500)
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>
arch/mips/include/asm/io.h

index d3ad66930131bcb366fa33cd5c9ffd11bf11d398..12595c43347503a4db4c75878cab8b80a86cb4be 100644 (file)
@@ -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;                                   \