media: s5p-g2d: convert g/s_crop to g/s_selection
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 4 Oct 2018 20:12:06 +0000 (16:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 20 Nov 2018 18:53:57 +0000 (13:53 -0500)
commitf72b9d8cfcd60f76146ac5ec31b0284fab0071b5
tree2089e766ae59040b308f9458bd44b324327eba00
parent158efdeebc4871aebd4d99ee009a350515e9d509
media: s5p-g2d: convert g/s_crop to g/s_selection

Replace g/s_crop by g/s_selection and set the V4L2_FL_QUIRK_INVERTED_CROP
flag since this is one of the old drivers that predates the selection
API. Those old drivers allowed g_crop when it really shouldn't have since
g_crop returns a compose rectangle instead of a crop rectangle for the
CAPTURE stream, and vice versa for the OUTPUT stream.

Also drop the now unused vidioc_cropcap.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/s5p-g2d/g2d.c