All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
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	[thread overview]
Message-ID: <20220613090230.1051414-1-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <YqDlP3uy33+WPphJ@pendragon.ideasonboard.com>

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 <m.grzeschik@pengutronix.de>
---
 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);
-- 
2.30.2


  parent reply	other threads:[~2022-06-13  9:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08 11:03 [RESEND v2 0/3] usb: gadget: uvc: fixes and improvements Michael Grzeschik
2022-06-08 11:03 ` [RESEND v2 1/3] usb: gadget: uvc: calculate the number of request depending on framesize Michael Grzeschik
2022-06-08 18:06   ` Laurent Pinchart
2022-06-12 10:31     ` Michael Grzeschik
2022-06-13  6:58     ` [PATCH] fixup! " Michael Grzeschik
2022-06-13  7:10       ` Greg KH
2022-06-13  9:02     ` Michael Grzeschik [this message]
2022-06-08 11:03 ` [RESEND v2 2/3] usb: gadget: uvc: increase worker prio to WQ_HIGHPRI Michael Grzeschik
2022-06-08 18:41   ` Laurent Pinchart
2022-06-12 10:33     ` Michael Grzeschik
2022-07-19 22:52     ` Michael Grzeschik
2022-07-20  9:31       ` Lucas Stach
2022-06-08 11:03 ` [RESEND v2 3/3] usb: gadget: uvc: call uvc uvcg_warn on completed status instead of uvcg_info Michael Grzeschik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220613090230.1051414-1-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.