aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-22 07:53:36 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 20:44:10 -0400
commit2c6beca875f0237ae9cfb2bb26144b60b9418c3a (patch)
treee59559c54e388a56361086efe5583209d4d970e7 /drivers/media
parent4be1ad36683b23355f059c3386f97a4427d1a56a (diff)
V4L/DVB (11135): cx231xx: use usb_make_path() for bus_info
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/cx231xx/cx231xx-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-video.c b/drivers/media/video/cx231xx/cx231xx-video.c
index 254d2281bfcd..d660c08634a2 100644
--- a/drivers/media/video/cx231xx/cx231xx-video.c
+++ b/drivers/media/video/cx231xx/cx231xx-video.c
@@ -1640,8 +1640,7 @@ static int vidioc_querycap(struct file *file, void *priv,
1640 1640
1641 strlcpy(cap->driver, "cx231xx", sizeof(cap->driver)); 1641 strlcpy(cap->driver, "cx231xx", sizeof(cap->driver));
1642 strlcpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card)); 1642 strlcpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card));
1643 strlcpy(cap->bus_info, dev->v4l2_dev.name, 1643 usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
1644 sizeof(cap->bus_info));
1645 1644
1646 cap->version = CX231XX_VERSION_CODE; 1645 cap->version = CX231XX_VERSION_CODE;
1647 1646