aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2009-01-20 15:40:44 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:27 -0400
commit6f2a278171bf7fc8153a42baa26b51d1ecb4c83f (patch)
treea837ad0b8c217697680f8d5c03571812ef10ddc7
parent5993a663a96df53f14d9e71abc27bcbd442317df (diff)
V4L/DVB (10306): usbvision: use usb_make_path to report bus info
usb_make_path reports canonical bus info. Use it when reporting bus info in VIDIOC_QUERYCAP. Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/usbvision/usbvision-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c
index 47d672da5415..334c77d9116f 100644
--- a/drivers/media/video/usbvision/usbvision-video.c
+++ b/drivers/media/video/usbvision/usbvision-video.c
@@ -526,8 +526,7 @@ static int vidioc_querycap (struct file *file, void *priv,
526 strlcpy(vc->card, 526 strlcpy(vc->card,
527 usbvision_device_data[usbvision->DevModel].ModelString, 527 usbvision_device_data[usbvision->DevModel].ModelString,
528 sizeof(vc->card)); 528 sizeof(vc->card));
529 strlcpy(vc->bus_info, dev_name(&usbvision->dev->dev), 529 usb_make_path(usbvision->dev, vc->bus_info, sizeof(vc->bus_info));
530 sizeof(vc->bus_info));
531 vc->version = USBVISION_DRIVER_VERSION; 530 vc->version = USBVISION_DRIVER_VERSION;
532 vc->capabilities = V4L2_CAP_VIDEO_CAPTURE | 531 vc->capabilities = V4L2_CAP_VIDEO_CAPTURE |
533 V4L2_CAP_AUDIO | 532 V4L2_CAP_AUDIO |