aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-06-18 11:31:24 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:34:10 -0300
commitb30ece53946ad2b79304ee5cfdb18b361dc3a3fc (patch)
tree80dc24b56b1a38d03d50e8077ae275ec02391847 /drivers/media/video/uvc/uvcvideo.h
parent1b4e21c4f62eae6bdcb3e7bfdfc52171a24f3689 (diff)
downloadkernel_samsung_espresso10-b30ece53946ad2b79304ee5cfdb18b361dc3a3fc.zip
kernel_samsung_espresso10-b30ece53946ad2b79304ee5cfdb18b361dc3a3fc.tar.gz
kernel_samsung_espresso10-b30ece53946ad2b79304ee5cfdb18b361dc3a3fc.tar.bz2
V4L/DVB: uvcvideo: Don't use stack-based buffers for USB transfers
Data buffers on the stack are not allowed for USB I/O. Use dynamically allocated buffers instead when querying control length and control capabilities. The control capabilities are now also stored in the uvc_control structure. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvcvideo.h b/drivers/media/video/uvc/uvcvideo.h
index 14f77e4..47b20e7 100644
--- a/drivers/media/video/uvc/uvcvideo.h
+++ b/drivers/media/video/uvc/uvcvideo.h
@@ -262,7 +262,8 @@ struct uvc_control {
modified : 1,
cached : 1;
- __u8 *data;
+ __u8 *uvc_data;
+ __u8 *uvc_info;
};
struct uvc_format_desc {