[media] vb2: simplify qbuf/prepare_buf by removing callback
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 13 Dec 2013 16:13:39 +0000 (13:13 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 7 Jan 2014 09:07:22 +0000 (07:07 -0200)
commit4138111a27859dcc56a5592c804dd16bb12a23d1
treea20fbb0f7795f176648ebec165ad021046229c9f
parentf103b5d64e12198343edc9ef7ad3eb4c0e826adf
[media] vb2: simplify qbuf/prepare_buf by removing callback

The callback used to merge the common code of the qbuf/prepare_buf
code can be removed now that the mmap_sem handling is pushed down to
__buf_prepare(). This makes the code more readable.

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