diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2009-01-21 13:32:26 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:33 -0400 |
commit | 5932028f749fe26292948d6d7d7ae1ee912350b3 (patch) | |
tree | 3dd79cdefda4792f14398306921795fbb27a2091 /drivers/media/video/gspca/gspca.c | |
parent | d08e2ce0ebb38f2b66d875a09ebab3ed548354ee (diff) |
V4L/DVB (10379): gspca - main: Use usb_make_path() for VIDIOC_QUERYCAP.
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 068060231630..eac7aec44254 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -961,8 +961,7 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
961 | le16_to_cpu(gspca_dev->dev->descriptor.idVendor), | 961 | le16_to_cpu(gspca_dev->dev->descriptor.idVendor), |
962 | le16_to_cpu(gspca_dev->dev->descriptor.idProduct)); | 962 | le16_to_cpu(gspca_dev->dev->descriptor.idProduct)); |
963 | } | 963 | } |
964 | strncpy(cap->bus_info, gspca_dev->dev->bus->bus_name, | 964 | usb_make_path(gspca_dev->dev, cap->bus_info, sizeof(cap->bus_info)); |
965 | sizeof cap->bus_info); | ||
966 | cap->version = DRIVER_VERSION_NUMBER; | 965 | cap->version = DRIVER_VERSION_NUMBER; |
967 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | 966 | cap->capabilities = V4L2_CAP_VIDEO_CAPTURE |
968 | | V4L2_CAP_STREAMING | 967 | | V4L2_CAP_STREAMING |