media: stk1160: move transfer_buffer and urb to same struct 'stk1160_urb'
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 25 Jan 2022 08:02:12 +0000 (09:02 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 7 Mar 2022 09:59:51 +0000 (10:59 +0100)
commit69fd04d06adb2cc67ce491df14fe3125bac6f7a7
treef34fde6dda6b03fd11bef1d80b63fcdb99029410
parentfbe04b49a54e31f4321d632270207f0e6304cd16
media: stk1160: move transfer_buffer and urb to same struct 'stk1160_urb'

Instead of having two separated arrays, one for the urbs and
one for their buffers, have one array of a struct containing both.
In addition, the array is just 16 pointers, no need to dynamically
allocate it.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/stk1160/stk1160-v4l.c
drivers/media/usb/stk1160/stk1160-video.c
drivers/media/usb/stk1160/stk1160.h