]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: gadget: uvc: Factor out video USB request queueing
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 10 Aug 2018 12:42:03 +0000 (15:42 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:48 +0000 (13:16 +0100)
commitcfe971ccd3349e9e00d043da879c2cbee38a3118
tree6421bbf60ce240329971d3aa033a88e3eb995e66
parentb6198353f1a289ac087f9e91d4a2bce9217edd51
usb: gadget: uvc: Factor out video USB request queueing

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit 9d1ff5dcb3cd3390b1e56f1c24ae42c72257c4a3 ]

USB requests for video data are queued from two different locations in
the driver, with the same code block occurring twice. Factor it out to a
function.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Tested-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/gadget/function/uvc_video.c