V4L/DVB (12744): em28xx: restructure fh/dev locking to handle both video and vbi
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Thu, 3 Sep 2009 03:23:27 +0000 (00:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 02:47:42 +0000 (23:47 -0300)
commit8c873d31af868b4e340defc7053945636c8bd0e1
treef25bc046a8354eaaa40b65b8b775010592657985
parent91f6dcec929b37a4568ddf55ef84e007d8fccc34
V4L/DVB (12744): em28xx: restructure fh/dev locking to handle both video and vbi

The current locking infrastructure didn't support having multiple fds accessing
the device (such as video and vbi).  Rework the locking infrastructure,
borrowing the design from cx88.

This work was sponsored by EyeMagnet Limited.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-video.c
drivers/media/video/em28xx/em28xx.h