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>
This commit is contained in:
parent
d08e2ce0eb
commit
5932028f74
|
@ -961,8 +961,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
|
||||
|
|
Loading…
Reference in New Issue