[media] marvell-ccic: use vb2 helpers and core locking
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 5 Mar 2015 20:33:17 +0000 (17:33 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 10:44:08 +0000 (07:44 -0300)
commit949bd4081ffe953af98b6ac7ebe0a8d59996fce9
tree018ee1704dde81accd23f10c50042b24f0673f0b
parent87d184300d6c50050b88d2d8a3aaab11eaa0c872
[media] marvell-ccic: use vb2 helpers and core locking

Use the V4L2 core locking system instead of rolling your own. Switch to
the vb2 fop and ioctl helpers to get rid of a lot of code. This also made
it easy to add VB2_READ to the DMA modes, since you get read() for free
with vb2 and these helpers.

Finally remove the users field: this information is also available from
the core framework, no need to keep track of it in the driver.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/marvell-ccic/mcam-core.c
drivers/media/platform/marvell-ccic/mcam-core.h