summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-22 08:53:36 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-22 08:53:36 -0300
commit1b7ec081b57402bbfb04a1e04dc14739f9b8262a (patch)
tree18c6463db9e9794cc6fb7acd1236c77c446c06e3 /linux/drivers/media
parent0ac5c38bc31a5a5a1913df3492a45cd0cc97038a (diff)
downloadmediapointer-dvb-s2-1b7ec081b57402bbfb04a1e04dc14739f9b8262a.tar.gz
mediapointer-dvb-s2-1b7ec081b57402bbfb04a1e04dc14739f9b8262a.tar.bz2
cx231xx: use usb_make_path() for bus_info
From: Mauro Carvalho Chehab <mchehab@redhat.com> 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 Priority: normal CC: Srinivasa Deevi <srinivasa.deevi@conexant.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/cx231xx/cx231xx-video.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/cx231xx/cx231xx-video.c b/linux/drivers/media/video/cx231xx/cx231xx-video.c
index 5ca747ffe..d53ddcb6a 100644
--- a/linux/drivers/media/video/cx231xx/cx231xx-video.c
+++ b/linux/drivers/media/video/cx231xx/cx231xx-video.c
@@ -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;