upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:50 +0000 (11:52 +0900)
commita5e94b241ab5205f5cfaf1662e2554d18b007cc7
treeb444489659534a73753c8bbce4c4a007724381bb
parent5696050c0ec2c19e2300101975c518a7300d1416
upstream: [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