[media] media: vb2: Share code between vb2_prepare_buf and vb2_qbuf
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 9 Aug 2013 11:11:26 +0000 (08:11 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 22 Aug 2013 15:01:51 +0000 (12:01 -0300)
commit012043b8346b2e288a791ca4a0f4f9db815b8a0a
treee6258ecde96ad9331d9b9c22ac6b79c68bccdddc
parenta517cca6b24fc54ac209e44118ec8962051662e3
[media] media: vb2: Share code between vb2_prepare_buf and vb2_qbuf

The two operations are very similar, refactor most of the code in a
helper function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c