V4L/DVB (11135): cx231xx: use usb_make_path() for bus_info
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 22 Mar 2009 11:53:36 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 7 Apr 2009 00:44:10 +0000 (21:44 -0300)
VIDIOC_QUERYCAP should return the proper bus info. In the case of USB, this
should be generated by usb_make_path(), being something like:
usb-0000:00:1d.7-2

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx231xx/cx231xx-video.c

index 254d2281bfcd54535cce5b43578d04349bdfe49a..d660c08634a280d04b7eaedd0db3f7f824bfa6d5 100644 (file)
@@ -1640,8 +1640,7 @@ static int vidioc_querycap(struct file *file, void *priv,
 
        strlcpy(cap->driver, "cx231xx", sizeof(cap->driver));
        strlcpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card));
-       strlcpy(cap->bus_info, dev->v4l2_dev.name,
-               sizeof(cap->bus_info));
+       usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
 
        cap->version = CX231XX_VERSION_CODE;