media: videobuf2-v4l2: add vb2_request_queue/validate helpers
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 21 May 2018 08:54:52 +0000 (04:54 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 15:22:32 +0000 (11:22 -0400)
commit86f6bd3cf1222c62bcccd76daf1c831f22e595bf
tree6428efc3e1713c30f8121decdee6f024674e757c
parentc07aa48ec57eca649e987e8f19a336d4373b8da6
media: videobuf2-v4l2: add vb2_request_queue/validate helpers

The generic vb2_request_validate helper function checks if
there are buffers in the request and if so, prepares (validates)
all objects in the request.

The generic vb2_request_queue helper function queues all buffer
objects in the validated request.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-v4l2.c
include/media/videobuf2-v4l2.h