Home
last modified time | relevance | path

Searched hist:dcefa533 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/radio/
H A Dradio-wl1273.cdcefa533 Tue Aug 07 08:25:37 CDT 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> media: radio-wl1273: fix return code for the polling routine

All poll handlers should return a poll flag, and not error codes. So,
instead of returning an error, do the right thing here,
e. g. to return EPOLERR on errors, just like the V4L2 VB2 code.

Solves the following sparse warning:
drivers/media/radio/radio-wl1273.c:1099:24: warning: incorrect type in return expression (different base types)
drivers/media/radio/radio-wl1273.c:1099:24: expected restricted __poll_t
drivers/media/radio/radio-wl1273.c:1099:24: got int

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
dcefa533 Tue Aug 07 08:25:37 CDT 2018 Mauro Carvalho Chehab <mchehab+samsung@kernel.org> media: radio-wl1273: fix return code for the polling routine

All poll handlers should return a poll flag, and not error codes. So,
instead of returning an error, do the right thing here,
e. g. to return EPOLERR on errors, just like the V4L2 VB2 code.

Solves the following sparse warning:
drivers/media/radio/radio-wl1273.c:1099:24: warning: incorrect type in return expression (different base types)
drivers/media/radio/radio-wl1273.c:1099:24: expected restricted __poll_t
drivers/media/radio/radio-wl1273.c:1099:24: got int

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>