Commit 214ba358 authored by Stafford Horne's avatar Stafford Horne Committed by Arnd Bergmann

io: Fix return type of _inb and _inl

The return type of functions _inb, _inw and _inl are all u16 which looks
wrong.  This patch makes them u8, u16 and u32 respectively.

The original commit text for these does not indicate that these should
be all forced to u16.

Fixes: f009c89d ("io: Provide _inX() and _outX()")
Signed-off-by: default avatarStafford Horne <shorne@gmail.com>
Reviewed-by: default avatarJohn Garry <john.garry@huawei.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent b3a9e3b9
...@@ -456,7 +456,7 @@ static inline void writesq(volatile void __iomem *addr, const void *buffer, ...@@ -456,7 +456,7 @@ static inline void writesq(volatile void __iomem *addr, const void *buffer,
#if !defined(inb) && !defined(_inb) #if !defined(inb) && !defined(_inb)
#define _inb _inb #define _inb _inb
static inline u16 _inb(unsigned long addr) static inline u8 _inb(unsigned long addr)
{ {
u8 val; u8 val;
...@@ -482,7 +482,7 @@ static inline u16 _inw(unsigned long addr) ...@@ -482,7 +482,7 @@ static inline u16 _inw(unsigned long addr)
#if !defined(inl) && !defined(_inl) #if !defined(inl) && !defined(_inl)
#define _inl _inl #define _inl _inl
static inline u16 _inl(unsigned long addr) static inline u32 _inl(unsigned long addr)
{ {
u32 val; u32 val;
......
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