[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANiDSCsFriCyQuF3aQ+mEeHERcaUPt45ZgVX2Wyfo2T6N3vS3g@mail.gmail.com>
Date: Fri, 29 Nov 2024 19:18:55 +0100
From: Ricardo Ribalda <ribalda@...omium.org>
To: Xiong Nandi <xndchn@...il.com>
Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>, Hans de Goede <hdegoede@...hat.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: uvcvideo: Use uvc_query_name in uvc_get_video_ctrl
On Fri, 29 Nov 2024 at 16:18, Xiong Nandi <xndchn@...il.com> wrote:
>
> uvc_query_name was introduced to print query name in uvc_query_ctrl.
> So we can also use it in uvc_get_video_ctrl.
>
> Signed-off-by: Xiong Nandi <xndchn@...il.com>
> ---
> drivers/media/usb/uvc/uvc_video.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c
> index e00f38dd07d9..93cacd2c8721 100644
> --- a/drivers/media/usb/uvc/uvc_video.c
> +++ b/drivers/media/usb/uvc/uvc_video.c
> @@ -297,8 +297,8 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream,
> goto out;
> } else if (ret != size) {
> dev_err(&stream->intf->dev,
> - "Failed to query (%u) UVC %s control : %d (exp. %u).\n",
> - query, probe ? "probe" : "commit", ret, size);
> + "Failed to query (%s) UVC %s control : %d (exp. %u).\n",
> + uvc_query_name(query), probe ? "probe" : "commit", ret, size);
nit: This is above 80 characters. Please move size to the next line,
aligned to uvc_query_name
With that change:
Reviewed-by: Ricardo Ribalda <ribalda@...omium.org>
> ret = (ret == -EPROTO) ? -EPROTO : -EIO;
> goto out;
> }
> --
> 2.25.1
>
>
--
Ricardo Ribalda
Powered by blists - more mailing lists