linux/drivers/media/platform/exynos-gsc
Mauro Carvalho Chehab 541b647a34 media: exynos-gsc: fix return code if mutex was interrupted
All poll routines expect a poll flag, and not error codes. So,
instead of returning -ERESTARTSYS if the mutex got interrupted,
return EPOLERR, just like the V4L2 VB2 code.

Solves this sparce warning:
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24: warning: incorrect type in return expression (different base types)
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24:    expected restricted __poll_t
	drivers/media/platform/exynos-gsc/gsc-m2m.c:716:24:    got int

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-08-08 10:57:14 -04:00
..
Makefile [media] exynos-gsc: Add missing Makefile 2012-09-15 15:09:34 -03:00
gsc-core.c media: exynos-gsc: Add hardware rotation limits 2017-10-16 16:49:09 -07:00
gsc-core.h [media] exynos-gsc: Use user configured colorspace if provided 2017-06-13 14:20:26 -03:00
gsc-m2m.c media: exynos-gsc: fix return code if mutex was interrupted 2018-08-08 10:57:14 -04:00
gsc-regs.c [media] gsc: Use %pad for dma_addr_t 2014-08-26 18:52:04 -03:00
gsc-regs.h [media] exynos-gsc: Fix settings for input and output image RGB type 2012-11-26 18:43:14 -02:00