gspca - kinect: move communications buffers out of stack
authorDrew Fisher <drew.m.fisher@gmail.com>
Thu, 21 Apr 2011 08:37:07 +0000 (10:37 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 21 Apr 2011 09:32:52 +0000 (11:32 +0200)
commit9da7655e0169c1067c3e9f38e52dd14ec5563596
tree7784676e2b9ecaaf39f3efd5cfcb5138c80bb0e0
parentbb58272e0d6ecd136cfc020249b5a05bced3b3cf
gspca - kinect: move communications buffers out of stack

Move large communications buffers out of stack and into device
structure. This prevents the frame size from being >1kB and fixes a
compiler warning when CONFIG_FRAME_WARN=1024:

drivers/media/video/gspca/kinect.c: In function ‘send_cmd.clone.0’:
drivers/media/video/gspca/kinect.c:202: warning: the frame size of 1548 bytes is larger than 1024 bytes

Reported-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
kinect.c