summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-01-21 19:32:26 +0100
committerJean-Francois Moine <moinejf@free.fr>2009-01-21 19:32:26 +0100
commit8754073a6ad9ca6fc1e6fd4743e64954b199a716 (patch)
tree4f63fcae334db18fff05f780ceebd4fab541985f /linux
parentf88d225f8dce1992c01bb023055f4b626861663c (diff)
downloadmediapointer-dvb-s2-8754073a6ad9ca6fc1e6fd4743e64954b199a716.tar.gz
mediapointer-dvb-s2-8754073a6ad9ca6fc1e6fd4743e64954b199a716.tar.bz2
gspca - main: Use usb_make_path() for VIDIOC_QUERYCAP.
From: Thierry MERLE <thierry.merle@free.fr> Priority: normal Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/gspca.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/gspca/gspca.c b/linux/drivers/media/video/gspca/gspca.c
index f5fad6905..c3ea5339c 100644
--- a/linux/drivers/media/video/gspca/gspca.c
+++ b/linux/drivers/media/video/gspca/gspca.c
@@ -970,8 +970,7 @@ static int vidioc_querycap(struct file *file, void *priv,
le16_to_cpu(gspca_dev->dev->descriptor.idVendor),
le16_to_cpu(gspca_dev->dev->descriptor.idProduct));
}
- strncpy(cap->bus_info, gspca_dev->dev->bus->bus_name,
- sizeof cap->bus_info);
+ usb_make_path(gspca_dev->dev, cap->bus_info, sizeof(cap->bus_info));
cap->version = DRIVER_VERSION_NUMBER;
cap->capabilities = V4L2_CAP_VIDEO_CAPTURE
| V4L2_CAP_STREAMING