From patchwork Mon Jun 13 09:02:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Grzeschik X-Patchwork-Id: 12879184 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E5AFC433EF for ; Mon, 13 Jun 2022 09:02:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232213AbiFMJCo (ORCPT ); Mon, 13 Jun 2022 05:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232382AbiFMJCm (ORCPT ); Mon, 13 Jun 2022 05:02:42 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49252CDB for ; Mon, 13 Jun 2022 02:02:40 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0fy2-0001aa-IQ; Mon, 13 Jun 2022 11:02:38 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1o0fy2-000GGZ-Cu; Mon, 13 Jun 2022 11:02:37 +0200 Received: from mgr by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o0fy1-004PX7-5V; Mon, 13 Jun 2022 11:02:37 +0200 From: Michael Grzeschik To: gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, laurent.pinchart@ideasonboard.com, kernel@pengutronix.de Subject: [PATCH] usb: gadget: uvc: Style fixes in uvc_queue Date: Mon, 13 Jun 2022 11:02:30 +0200 Message-Id: <20220613090230.1051414-1-m.grzeschik@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mgr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-usb@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org In Patch "c5d337a3: usb: gadget: uvc: Fix comment blocks style" the overall comment style was fixed to use a consistent format. This was missed in the Patch "87d76b5f: usb: gadget: uvc: calculate the number of request depending on framesize". In this patch, it also missed to remove the extra parentheses around video->ep->mult. We fix it now. Signed-off-by: Michael Grzeschik --- drivers/usb/gadget/function/uvc_queue.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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);