diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-08-28 13:48:27 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-10-01 13:13:58 +0200 |
commit | d6d3fe2fe118ad13ac3a24c1e45a37312b44c462 (patch) | |
tree | 1e71ae8f72294b5e947e63266f1bbe3bdc6e8ed0 /drivers/media/pci/saa7164/saa7164-encoder.c | |
parent | [media] saa7164: convert to the control framework (diff) | |
download | linux-d6d3fe2fe118ad13ac3a24c1e45a37312b44c462.tar.xz linux-d6d3fe2fe118ad13ac3a24c1e45a37312b44c462.zip |
[media] saa7164: add v4l2_fh support
Control events require the use of struct v4l2_fh. Add this to saa7164.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/saa7164/saa7164-encoder.c')
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-encoder.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-encoder.c b/drivers/media/pci/saa7164/saa7164-encoder.c index 390211bd352f..96dd1e483c79 100644 --- a/drivers/media/pci/saa7164/saa7164-encoder.c +++ b/drivers/media/pci/saa7164/saa7164-encoder.c @@ -746,8 +746,10 @@ static int fops_open(struct file *file) if (NULL == fh) return -ENOMEM; - file->private_data = fh; fh->port = port; + v4l2_fh_init(&fh->fh, video_devdata(file)); + v4l2_fh_add(&fh->fh); + file->private_data = fh; return 0; } @@ -768,7 +770,8 @@ static int fops_release(struct file *file) } } - file->private_data = NULL; + v4l2_fh_del(&fh->fh); + v4l2_fh_exit(&fh->fh); kfree(fh); return 0; |