summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/hdpvr/hdpvr.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-04-06 06:00:17 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-14 19:57:32 -0300
commitede197aac0c64021a0b2139d19edd8fa066530c2 (patch)
tree2865f3550473c1fe42c4bb462de21e575166fc7d /drivers/media/usb/hdpvr/hdpvr.h
parent99c77aa4281c41fab255a4eb25ccc36a8c2e113d (diff)
[media] hdpvr: remove hdpvr_fh and just use v4l2_fh
This prepares the driver for priority and control event handling. This patch also checks for correct streaming ownership and it makes a small improvement to the encoder_cmd ioctls: always zero 'flags' and drop the memset of 'raw' as that is already done by the v4l2 core. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/hdpvr/hdpvr.h')
-rw-r--r--drivers/media/usb/hdpvr/hdpvr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr.h b/drivers/media/usb/hdpvr/hdpvr.h
index 2a4deab7076..94500935612 100644
--- a/drivers/media/usb/hdpvr/hdpvr.h
+++ b/drivers/media/usb/hdpvr/hdpvr.h
@@ -85,8 +85,6 @@ struct hdpvr_device {
/* holds the current device status */
__u8 status;
- /* count the number of openers */
- uint open_count;
/* holds the cureent set options */
struct hdpvr_options options;
@@ -107,6 +105,8 @@ struct hdpvr_device {
struct workqueue_struct *workqueue;
/**/
struct work_struct worker;
+ /* current stream owner */
+ struct v4l2_fh *owner;
/* I2C adapter */
struct i2c_adapter i2c_adapter;