diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2010-09-29 15:00:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-20 23:18:23 -0400 |
commit | 071c8bb827c80a68510a1cdb7e8bebbda1a494d6 (patch) | |
tree | d2bd4add49795a09ff038a492e8901dbe1b3470f /drivers/media/video/uvc/uvcvideo.h | |
parent | 8fb91b33c6bfa3ac5e4ad76920b7bcd7bdbbb6d0 (diff) |
[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 39e9e36e883..7d67d95de83 100644 --- a/drivers/media/video/uvc/uvcvideo.h +++ b/drivers/media/video/uvc/uvcvideo.h | |||
@@ -236,14 +236,15 @@ struct uvc_control_mapping { | |||
236 | 236 | ||
237 | struct uvc_control { | 237 | struct uvc_control { |
238 | struct uvc_entity *entity; | 238 | struct uvc_entity *entity; |
239 | struct uvc_control_info *info; | 239 | struct uvc_control_info info; |
240 | 240 | ||
241 | __u8 index; /* Used to match the uvc_control entry with a | 241 | __u8 index; /* Used to match the uvc_control entry with a |
242 | uvc_control_info. */ | 242 | uvc_control_info. */ |
243 | __u8 dirty : 1, | 243 | __u8 dirty:1, |
244 | loaded : 1, | 244 | loaded:1, |
245 | modified : 1, | 245 | modified:1, |
246 | cached : 1; | 246 | cached:1, |
247 | initialized:1; | ||
247 | 248 | ||
248 | __u8 *uvc_data; | 249 | __u8 *uvc_data; |
249 | }; | 250 | }; |