media: uvcvideo: Utilise for_each_uvc_urb iterator
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Sat, 27 Jan 2018 23:43:01 +0000 (18:43 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 08:18:46 +0000 (03:18 -0500)
commit30eb909d1146454345c204393ea18a4d57bcfa39
treeca40d12734c13aed783311712712de6a03977d59
parentfb58e16bb7838338b76b6fd03fdc3032c1841a9d
media: uvcvideo: Utilise for_each_uvc_urb iterator

A new iterator is available for processing UVC URB structures. This
simplifies the processing of the internal stream data.

Convert the manual loop iterators to the new helper, adding an index
helper to keep the existing debug print.

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