diff mbox

[3/5] gspca: use usb_make_path to report bus info

Message ID 497644D6.7060102@free.fr (mailing list archive)
State RFC
Headers show

Commit Message

Thierry Merle Jan. 20, 2009, 9:40 p.m. UTC
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

Comments

Jean-Francois Moine Jan. 21, 2009, 6:34 p.m. UTC | #1
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 mbox

Patch

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