diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2009-01-27 20:53:23 +0100 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2009-01-27 20:53:23 +0100 |
commit | 84a2c3b589a287878dce4e2b7380b9250bc56392 (patch) | |
tree | 2e1fbdca10765226db8716fd6e8369d51ebe543a /linux/drivers/media/video/uvc/uvc_v4l2.c | |
parent | 8d9ad37755717f75c8616e05eb949fc7c9311ae7 (diff) | |
download | mediapointer-dvb-s2-84a2c3b589a287878dce4e2b7380b9250bc56392.tar.gz mediapointer-dvb-s2-84a2c3b589a287878dce4e2b7380b9250bc56392.tar.bz2 |
uvcvideo: use usb_make_path to report bus info
From: Thierry MERLE <thierry.merle@free.fr>
usb_make_path reports canonical bus info. Use it when reporting bus info
in VIDIOC_QUERYCAP.
Priority: normal
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Acked-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Diffstat (limited to 'linux/drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r-- | linux/drivers/media/video/uvc/uvc_v4l2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/uvc/uvc_v4l2.c b/linux/drivers/media/video/uvc/uvc_v4l2.c index 9130349f4..0baa59f61 100644 --- a/linux/drivers/media/video/uvc/uvc_v4l2.c +++ b/linux/drivers/media/video/uvc/uvc_v4l2.c @@ -494,8 +494,8 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) memset(cap, 0, sizeof *cap); strlcpy(cap->driver, "uvcvideo", sizeof cap->driver); strlcpy(cap->card, vdev->name, sizeof cap->card); - strlcpy(cap->bus_info, video->dev->udev->bus->bus_name, - sizeof cap->bus_info); + usb_make_path(video->dev->udev, + cap->bus_info, sizeof(cap->bus_info)); cap->version = DRIVER_VERSION_NUMBER; if (video->streaming->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) cap->capabilities = V4L2_CAP_VIDEO_CAPTURE |