aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/usbvision/usbvision.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/usbvision/usbvision.h')
-rw-r--r--drivers/media/video/usbvision/usbvision.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/usbvision/usbvision.h b/drivers/media/video/usbvision/usbvision.h
index f8d7458daf3e..d1b3cc0cd87f 100644
--- a/drivers/media/video/usbvision/usbvision.h
+++ b/drivers/media/video/usbvision/usbvision.h
@@ -360,7 +360,6 @@ struct usb_usbvision {
360 struct v4l2_device v4l2_dev; 360 struct v4l2_device v4l2_dev;
361 struct video_device *vdev; /* Video Device */ 361 struct video_device *vdev; /* Video Device */
362 struct video_device *rdev; /* Radio Device */ 362 struct video_device *rdev; /* Radio Device */
363 struct video_device *vbi; /* VBI Device */
364 363
365 /* i2c Declaration Section*/ 364 /* i2c Declaration Section*/
366 struct i2c_adapter i2c_adap; 365 struct i2c_adapter i2c_adap;
@@ -463,6 +462,11 @@ struct usb_usbvision {
463 int ComprBlockTypes[4]; 462 int ComprBlockTypes[4];
464}; 463};
465 464
465static inline struct usb_usbvision *to_usbvision(struct v4l2_device *v4l2_dev)
466{
467 return container_of(v4l2_dev, struct usb_usbvision, v4l2_dev);
468}
469
466#define call_all(usbvision, o, f, args...) \ 470#define call_all(usbvision, o, f, args...) \
467 v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args) 471 v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args)
468 472