]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/media/usb/uvc/uvc_driver.c
media: uvcvideo: Use usb_make_path to fill in usb_info
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 1 Feb 2019 09:57:31 +0000 (04:57 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 20:19:49 +0000 (15:19 -0500)
commit0654cbcc8dfbf3bc5e6f93916b67fa57ed826a4b
tree16b8ac45f070fdf036920e073a62d83ab6d073d9
parent45602f7110fe8fa2d109641d6f80fb7d6ccf9b5a
media: uvcvideo: Use usb_make_path to fill in usb_info

The uvc driver uses this function to fill in bus_info for VIDIOC_QUERYCAP,
so use the same function when filling in the bus_info for the media device.

The current implementation only fills in part of the info. E.g. if the full
bus_info is usb-0000:01:00.0-1.4.2, then the media bus_info only has 1.4.2.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_driver.c