summaryrefslogtreecommitdiff
path: root/drivers/media/pci/cx23885/cx23885-video.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-04-23 05:32:58 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 07:45:22 -0300
commit86dd9831aea494e3e5c565c697df60484f55780c (patch)
tree7725ab0dd84acea99adb4a6bdb2cb3ffad98fe45 /drivers/media/pci/cx23885/cx23885-video.c
parentd43be757b945b292402edc28aa67cf53581d3428 (diff)
[media] cx23885: support v4l2_fh and g/s_priority
Add support for struct v4l2_fh and priority handling. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/cx23885/cx23885-video.c')
-rw-r--r--drivers/media/pci/cx23885/cx23885-video.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-video.c b/drivers/media/pci/cx23885/cx23885-video.c
index 79de4acbf533..d575bfc8ac41 100644
--- a/drivers/media/pci/cx23885/cx23885-video.c
+++ b/drivers/media/pci/cx23885/cx23885-video.c
@@ -883,7 +883,8 @@ static int video_open(struct file *file)
if (NULL == fh)
return -ENOMEM;
- file->private_data = fh;
+ v4l2_fh_init(&fh->fh, vdev);
+ file->private_data = &fh->fh;
fh->dev = dev;
fh->radio = radio;
fh->type = type;
@@ -905,6 +906,7 @@ static int video_open(struct file *file)
sizeof(struct cx23885_buffer),
fh, NULL);
+ v4l2_fh_add(&fh->fh);
dprintk(1, "post videobuf_queue_init()\n");
@@ -1003,6 +1005,8 @@ static int video_release(struct file *file)
videobuf_mmap_free(&fh->vidq);
videobuf_mmap_free(&fh->vbiq);
+ v4l2_fh_del(&fh->fh);
+ v4l2_fh_exit(&fh->fh);
file->private_data = NULL;
kfree(fh);