]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitae3427b25c13833cd5aa99699a9102a0df34847e
treea20fbb0f7795f176648ebec165ad021046229c9f
parent69952106cc49a8df6621647a416d35e113e8eef6
[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