]> git.baikalelectronics.ru Git - kernel.git/commit
soc: aspeed: Fix snoop_file_poll()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 21 Nov 2019 05:18:51 +0000 (15:48 +1030)
committerOlof Johansson <olof@lixom.net>
Thu, 5 Dec 2019 18:10:08 +0000 (10:10 -0800)
commitba26d167724f9c7522a0eb98931862e21e280231
treed6489de9f40c910d4d253c936c1ddec9d8c86a58
parent0a8127a59146d9002cbd33ce6559d532756094ee
soc: aspeed: Fix snoop_file_poll()'s return type

snoop_file_poll() is defined as returning 'unsigned int' but the
.poll method is declared as returning '__poll_t', a bitwise type.

Fix this by using the proper return type and using the EPOLL
constants instead of the POLL ones, as required for __poll_t.

Link: https://lore.kernel.org/r/20191121051851.268726-1-joel@jms.id.au
Fixes: dc95f1b1263e ("drivers/misc: Aspeed LPC snoop output using misc chardev")
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/soc/aspeed/aspeed-lpc-snoop.c