diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-21 16:11:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:54 -0400 |
commit | 1df795370c1392a026c63816368108187aec2ec1 (patch) | |
tree | 3cdb3df8c2faee0521f9a15355774747b3f0ccf1 /drivers/media/video/usbvision/usbvision.h | |
parent | ab373190813a2e89f9ab7338c6b106804611f2b7 (diff) |
V4L/DVB (10692): usbvision: convert to v4l2_device/v4l2_subdev.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/usbvision/usbvision.h')
-rw-r--r-- | drivers/media/video/usbvision/usbvision.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/usbvision/usbvision.h b/drivers/media/video/usbvision/usbvision.h index 20d7ec624999..06fe43655957 100644 --- a/drivers/media/video/usbvision/usbvision.h +++ b/drivers/media/video/usbvision/usbvision.h | |||
@@ -35,7 +35,7 @@ | |||
35 | #include <linux/usb.h> | 35 | #include <linux/usb.h> |
36 | #include <linux/i2c.h> | 36 | #include <linux/i2c.h> |
37 | #include <linux/mutex.h> | 37 | #include <linux/mutex.h> |
38 | #include <media/v4l2-common.h> | 38 | #include <media/v4l2-device.h> |
39 | #include <media/tuner.h> | 39 | #include <media/tuner.h> |
40 | #include <linux/videodev2.h> | 40 | #include <linux/videodev2.h> |
41 | 41 | ||
@@ -357,13 +357,13 @@ extern struct usbvision_device_data_st usbvision_device_data[]; | |||
357 | extern struct usb_device_id usbvision_table[]; | 357 | extern struct usb_device_id usbvision_table[]; |
358 | 358 | ||
359 | struct usb_usbvision { | 359 | struct usb_usbvision { |
360 | struct v4l2_device v4l2_dev; | ||
360 | struct video_device *vdev; /* Video Device */ | 361 | struct video_device *vdev; /* Video Device */ |
361 | struct video_device *rdev; /* Radio Device */ | 362 | struct video_device *rdev; /* Radio Device */ |
362 | struct video_device *vbi; /* VBI Device */ | 363 | struct video_device *vbi; /* VBI Device */ |
363 | 364 | ||
364 | /* i2c Declaration Section*/ | 365 | /* i2c Declaration Section*/ |
365 | struct i2c_adapter i2c_adap; | 366 | struct i2c_adapter i2c_adap; |
366 | struct i2c_client i2c_client; | ||
367 | 367 | ||
368 | struct urb *ctrlUrb; | 368 | struct urb *ctrlUrb; |
369 | unsigned char ctrlUrbBuffer[8]; | 369 | unsigned char ctrlUrbBuffer[8]; |
@@ -374,7 +374,6 @@ struct usb_usbvision { | |||
374 | /* configuration part */ | 374 | /* configuration part */ |
375 | int have_tuner; | 375 | int have_tuner; |
376 | int tuner_type; | 376 | int tuner_type; |
377 | int tuner_addr; | ||
378 | int bridgeType; // NT1003, NT1004, NT1005 | 377 | int bridgeType; // NT1003, NT1004, NT1005 |
379 | int radio; | 378 | int radio; |
380 | int video_inputs; // # of inputs | 379 | int video_inputs; // # of inputs |
@@ -464,6 +463,8 @@ struct usb_usbvision { | |||
464 | int ComprBlockTypes[4]; | 463 | int ComprBlockTypes[4]; |
465 | }; | 464 | }; |
466 | 465 | ||
466 | #define call_all(usbvision, o, f, args...) \ | ||
467 | v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args) | ||
467 | 468 | ||
468 | /* --------------------------------------------------------------- */ | 469 | /* --------------------------------------------------------------- */ |
469 | /* defined in usbvision-i2c.c */ | 470 | /* defined in usbvision-i2c.c */ |
@@ -475,7 +476,6 @@ struct usb_usbvision { | |||
475 | /* ----------------------------------------------------------------------- */ | 476 | /* ----------------------------------------------------------------------- */ |
476 | int usbvision_i2c_register(struct usb_usbvision *usbvision); | 477 | int usbvision_i2c_register(struct usb_usbvision *usbvision); |
477 | int usbvision_i2c_unregister(struct usb_usbvision *usbvision); | 478 | int usbvision_i2c_unregister(struct usb_usbvision *usbvision); |
478 | void call_i2c_clients(struct usb_usbvision *usbvision, unsigned int cmd,void *arg); | ||
479 | 479 | ||
480 | /* defined in usbvision-core.c */ | 480 | /* defined in usbvision-core.c */ |
481 | int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg); | 481 | int usbvision_read_reg(struct usb_usbvision *usbvision, unsigned char reg); |