mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
media: uvcvideo: Use uvc_query_name in uvc_get_video_ctrl
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@gmail.com> Reviewed-by: Ricardo Ribalda <ribalda@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://lore.kernel.org/r/20241129151723.48275-1-xndchn@gmail.com Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
060950f7f7
commit
7309f3e2b7
|
|
@ -322,8 +322,9 @@ 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);
|
||||
ret = (ret == -EPROTO) ? -EPROTO : -EIO;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user