Message ID | 497644D6.7060102@free.fr (mailing list archive) |
---|---|
State | RFC |
Headers | show |
On Tue, 20 Jan 2009 22:40:38 +0100 Thierry Merle <thierry.merle@free.fr> wrote: > 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> Applied. Thanks.
diff -r 6ac9dc705aea -r 72ba48adaacd linux/drivers/media/video/gspca/gspca.c --- a/linux/drivers/media/video/gspca/gspca.c Tue Jan 20 22:01:33 2009 +0100 +++ b/linux/drivers/media/video/gspca/gspca.c Tue Jan 20 22:06:58 2009 +0100 @@ -977,8 +977,7 @@ 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
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> -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html