[media] videobuf2-core: add helper functions
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 2 Jul 2012 08:59:18 +0000 (05:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 20:32:06 +0000 (17:32 -0300)
commit4c1ffcaad5070ea5bca9b8057bdd7b4925237bc0
treecf8b068a37f23d7ca5ee30870ee8bd670c54c53f
parent5a5adf6b669cf1a3dd2af419cd68a4c491f384a3
[media] videobuf2-core: add helper functions

Add helper functions to make it easier to adapt drivers to vb2.

These helpers take care of core locking and check if the filehandle is the
owner of the queue.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c
include/media/videobuf2-core.h