]> git.ipfire.org Git - thirdparty/linux.git/commit
media: uvcvideo: Populate all errors in uvc_probe()
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 23 May 2025 14:28:41 +0000 (14:28 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 16 Jun 2025 06:43:23 +0000 (08:43 +0200)
commitcdf8f4c78ab0c2dc98dd5b017b0a31590c3e046d
treebc51e45ad459929fff3304903f177b9b2815e97c
parent649c033711d7fd6e1d5d69e4cfc3fceca7de2867
media: uvcvideo: Populate all errors in uvc_probe()

Now we are replacing most of the error codes with -ENODEV.
Instead, Populate the error code from the functions called by
uvc_probe().

Take this opportunity to replace a generic error code from
uvc_scan_device() into something more meaningful.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Link: https://lore.kernel.org/r/20250523-uvc-followup-v2-1-487541656e83@chromium.org
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_driver.c