media: uvcvideo: Refactor URB descriptors
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Tue, 14 Mar 2017 22:03:23 +0000 (18:03 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 08:06:16 +0000 (03:06 -0500)
commit811496c9679a7bf58a4e8af739fc2ee927345469
treec7bc4d3e0fb7135553ddbcbcbd0dc4f0d7c71e00
parent9b90dc85c718443a3e573a0ccf55900ff4fa73ae
media: uvcvideo: Refactor URB descriptors

We currently store three separate arrays for each URB reference we hold.

Objectify the data needed to track URBs into a single uvc_urb structure,
allowing better object management and tracking of the URB.

All accesses to the data pointers through stream, are converted to use a
uvc_urb pointer for consistency.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h