misc: xilinx_sdfec: fix xsdfec_poll()'s return type
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Mon, 9 Dec 2019 21:36:55 +0000 (22:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:47 +0000 (08:36 +0100)
commit83f964dd14a7d3e3636cbe1e1f4d3aa16bbe8032
tree0641da4b6748917805769057489dbb85326f09a6
parent9087af8639c2aeb76d59acf19c0d47dae27e3935
misc: xilinx_sdfec: fix xsdfec_poll()'s return type

[ Upstream commit fa4e7fc1386078edcfddd8848cb0374f4af74fe7 ]

xsdfec_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.

CC: Derek Kiernan <derek.kiernan@xilinx.com>
CC: Dragan Cvetic <dragan.cvetic@xilinx.com>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Acked-by: Dragan Cvetic <dragan.cvetic@xilinx.com>
Link: https://lore.kernel.org/r/20191209213655.57985-1-luc.vanoostenryck@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/xilinx_sdfec.c