diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-01-21 03:39:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-25 18:50:49 -0400 |
commit | 5a254d751e52e0f817090c29950d16cf18490d5b (patch) | |
tree | 0f0d0076a6dbd478d3c0758bd339a93a6970bfee /drivers/media/video/uvc/uvcvideo.h | |
parent | 115d2535f8ced13503b62a1275338e09a51681dc (diff) |
[media] uvcvideo: Register a v4l2_device
As a first step to the media controller integration register a
v4l2_device for each UVC control interface and make the video_device a
child of the v4l2_device.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvcvideo.h')
-rw-r--r-- | drivers/media/video/uvc/uvcvideo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 7cf224bae2e5..aab7508f2bd2 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -100,6 +100,8 @@ struct uvc_xu_control { | |||
100 | #include <linux/poll.h> | 100 | #include <linux/poll.h> |
101 | #include <linux/usb/video.h> | 101 | #include <linux/usb/video.h> |
102 | #include <linux/uvcvideo.h> | 102 | #include <linux/uvcvideo.h> |
103 | #include <media/media-device.h> | ||
104 | #include <media/v4l2-device.h> | ||
103 | 105 | ||
104 | /* -------------------------------------------------------------------------- | 106 | /* -------------------------------------------------------------------------- |
105 | * UVC constants | 107 | * UVC constants |
@@ -504,6 +506,10 @@ struct uvc_device { | |||
504 | atomic_t nmappings; | 506 | atomic_t nmappings; |
505 | 507 | ||
506 | /* Video control interface */ | 508 | /* Video control interface */ |
509 | #ifdef CONFIG_MEDIA_CONTROLLER | ||
510 | struct media_device mdev; | ||
511 | #endif | ||
512 | struct v4l2_device vdev; | ||
507 | __u16 uvc_version; | 513 | __u16 uvc_version; |
508 | __u32 clock_frequency; | 514 | __u32 clock_frequency; |
509 | 515 | ||