[media] media: usb: uvc: use vb2_ops_wait_prepare/finish helper
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Wed, 26 Nov 2014 23:25:44 +0000 (20:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Dec 2014 10:58:09 +0000 (08:58 -0200)
commit5fb3f55504d5d9b6ca97131091707afd351fe1dc
tree66fe3c88b717d7235e21dc0fac7dabff00de91ab
parent9587a3fc4333efd9cfd56a0754cabf76bdcdb3b0
[media] media: usb: uvc: use vb2_ops_wait_prepare/finish helper

This patch drops driver specific wait_prepare() and wait_finish()
callbacks from vb2_ops and instead uses the the helpers
vb2_ops_wait_prepare/finish() provided by the vb2 core, the lock member
of the queue needs to be initalized to a mutex so that vb2 helpers
vb2_ops_wait_prepare/finish() can make use of it.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/uvc/uvc_queue.c