]> git.baikalelectronics.ru Git - kernel.git/commit
io: Fix return type of _inb and _inl
authorStafford Horne <shorne@gmail.com>
Sun, 26 Jul 2020 03:11:54 +0000 (12:11 +0900)
committerArnd Bergmann <arnd@arndb.de>
Mon, 27 Jul 2020 08:32:29 +0000 (10:32 +0200)
commita529ea8aef7cb4db10b3ed7eb1c38966e9a854b2
treef6cbeb47dc3927ac6cd6422fa251e93915de1eb6
parent2e0873da09585b8a2daf9ca8c2facd15f454ec3f
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: f1547713df31 ("io: Provide _inX() and _outX()")
Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h