diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-09-29 16:00:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 01:18:23 -0200 |
commit | 071c8bb827c80a68510a1cdb7e8bebbda1a494d6 (patch) | |
tree | d2bd4add49795a09ff038a492e8901dbe1b3470f /drivers/media/video/uvc/uvcvideo.h | |
parent | 8fb91b33c6bfa3ac5e4ad76920b7bcd7bdbbb6d0 (diff) | |
download | op-kernel-dev-071c8bb827c80a68510a1cdb7e8bebbda1a494d6.zip op-kernel-dev-071c8bb827c80a68510a1cdb7e8bebbda1a494d6.tar.gz |
[media] uvcvideo: Embed uvc_control_info inside struct uvc_control
Now that control information structures are not shared between control
instances, embed a uvc_control_info instance inside the uvc_control
structure instead of storing a pointer.
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 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h index 39e9e36..7d67d95 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h @@ -236,14 +236,15 @@ struct uvc_control_mapping { struct uvc_control { struct uvc_entity *entity; - struct uvc_control_info *info; + struct uvc_control_info info; __u8 index; /* Used to match the uvc_control entry with a uvc_control_info. */ - __u8 dirty : 1, - loaded : 1, - modified : 1, - cached : 1; + __u8 dirty:1, + loaded:1, + modified:1, + cached:1, + initialized:1; __u8 *uvc_data; }; |