diff options
author | Mike Isely <isely@pobox.com> | 2007-01-19 22:09:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:38 -0500 |
commit | 18103c57b0168ebc0401702d483fe131f0aecc7a (patch) | |
tree | 1d57e73217254121f0c023009c510a4936332d64 /drivers/media/video/pvrusb2/pvrusb2-i2c-core.h | |
parent | af78a48b69231e129db0e1db24053da22f8eed6d (diff) |
V4L/DVB (5081): Pvrusb2: VIDIOC_G_TUNER cleanup
Clean up use of VIDIOC_G_TUNER; we now correctly gather info from all
the I2C client modules. Also abide by V4L2_TUNER_CAP_LOW
appropriately.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-i2c-core.h')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-i2c-core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.h b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.h index 6d7e2524757..bd0807b905b 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-i2c-core.h +++ b/drivers/media/video/pvrusb2/pvrusb2-i2c-core.h | |||
@@ -35,10 +35,12 @@ struct pvr2_i2c_client { | |||
35 | struct i2c_client *client; | 35 | struct i2c_client *client; |
36 | struct pvr2_i2c_handler *handler; | 36 | struct pvr2_i2c_handler *handler; |
37 | struct list_head list; | 37 | struct list_head list; |
38 | struct pvr2_hdw *hdw; | ||
38 | int detected_flag; | 39 | int detected_flag; |
39 | int recv_enable; | 40 | int recv_enable; |
40 | unsigned long pend_mask; | 41 | unsigned long pend_mask; |
41 | unsigned long ctl_mask; | 42 | unsigned long ctl_mask; |
43 | void (*status_poll)(struct pvr2_i2c_client *); | ||
42 | }; | 44 | }; |
43 | 45 | ||
44 | struct pvr2_i2c_handler { | 46 | struct pvr2_i2c_handler { |
@@ -67,6 +69,7 @@ int pvr2_i2c_core_cmd(struct pvr2_hdw *,unsigned int cmd,void *arg); | |||
67 | 69 | ||
68 | int pvr2_i2c_core_check_stale(struct pvr2_hdw *); | 70 | int pvr2_i2c_core_check_stale(struct pvr2_hdw *); |
69 | void pvr2_i2c_core_sync(struct pvr2_hdw *); | 71 | void pvr2_i2c_core_sync(struct pvr2_hdw *); |
72 | void pvr2_i2c_core_status_poll(struct pvr2_hdw *); | ||
70 | unsigned int pvr2_i2c_report(struct pvr2_hdw *,char *buf,unsigned int maxlen); | 73 | unsigned int pvr2_i2c_report(struct pvr2_hdw *,char *buf,unsigned int maxlen); |
71 | #define PVR2_I2C_DETAIL_DEBUG 0x0001 | 74 | #define PVR2_I2C_DETAIL_DEBUG 0x0001 |
72 | #define PVR2_I2C_DETAIL_HANDLER 0x0002 | 75 | #define PVR2_I2C_DETAIL_HANDLER 0x0002 |