Message ID | 20220613065844.1029977-1-m.grzeschik@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fixup! usb: gadget: uvc: calculate the number of request depending on framesize | expand |
On Mon, Jun 13, 2022 at 08:58:44AM +0200, Michael Grzeschik wrote: > --- > In Patch "c5d337a3: usb: gadget: uvc: Fix comment blocks style" the overall > comment style was fixed to use a consistent format. > > Laurent suggested to fix the comment format and to drop the extra > parantheses around video->ep->mult in this patch. But it was already > taken without those changes. > > Greg, could you fix this up in usb-next? I need a real patch that I can apply, this is not that format :(
diff --git a/drivers/usb/gadget/function/uvc_queue.c b/drivers/usb/gadget/function/uvc_queue.c index ec500ee499eed1..267474225ee409 100644 --- a/drivers/usb/gadget/function/uvc_queue.c +++ b/drivers/usb/gadget/function/uvc_queue.c @@ -56,9 +56,10 @@ static int uvc_queue_setup(struct vb2_queue *vq, req_size = video->ep->maxpacket * max_t(unsigned int, video->ep->maxburst, 1) - * (video->ep->mult); + * video->ep->mult; - /* We divide by two, to increase the chance to run + /* + * We divide by two, to increase the chance to run * into fewer requests for smaller framesizes. */ nreq = DIV_ROUND_UP(DIV_ROUND_UP(sizes[0], 2), req_size);