diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 21:40:44 +0100 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 21:40:44 +0100 |
commit | 48bd5d0791a4bfa37b864d064447083d18ec9030 (patch) | |
tree | c723119871c44bebcc7affa66a2eef386c178c11 | |
parent | 7675a6ebbda69456487f54377309a922b4f415e9 (diff) | |
download | mediapointer-dvb-s2-48bd5d0791a4bfa37b864d064447083d18ec9030.tar.gz mediapointer-dvb-s2-48bd5d0791a4bfa37b864d064447083d18ec9030.tar.bz2 |
usbvision: 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>
-rw-r--r-- | linux/drivers/media/video/usbvision/usbvision-video.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c index 47d672da5..334c77d91 100644 --- a/linux/drivers/media/video/usbvision/usbvision-video.c +++ b/linux/drivers/media/video/usbvision/usbvision-video.c @@ -526,8 +526,7 @@ static int vidioc_querycap (struct file *file, void *priv, strlcpy(vc->card, usbvision_device_data[usbvision->DevModel].ModelString, sizeof(vc->card)); - strlcpy(vc->bus_info, dev_name(&usbvision->dev->dev), - sizeof(vc->bus_info)); + usb_make_path(usbvision->dev, vc->bus_info, sizeof(vc->bus_info)); vc->version = USBVISION_DRIVER_VERSION; vc->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_AUDIO | |