]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: uvcvideo: Use intf instead of udev for printks
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 25 Jul 2025 11:01:29 +0000 (11:01 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Sat, 13 Sep 2025 16:35:00 +0000 (18:35 +0200)
commit5cdbca8967dc804829883e251a9d197b5fab4aed
tree74b1326702841cdabcb36d43b117e3a3ee3b8394
parent3e412a7b57c32410b05f659045a64c28b0acbb24
media: uvcvideo: Use intf instead of udev for printks

The UVC driver is a usb_interface driver. Use the correct device for
printks to avoid confusions with other interface drivers associated to
the same usb device.

With this change:
uvcvideo 3-6:1.0: Found UVC 1.10 device USB2.0 WebCam (1234:abcd)

Without this change:
usb 3-6: Found UVC 1.10 device USB2.0 WebCam (1234:abcd)

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_entity.c
drivers/media/usb/uvc/uvc_status.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h