aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/em28xx/em28xx-video.c
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2009-01-20 16:01:33 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:27 -0400
commitcb97716f3bcc3710b5dc44c01fd7450d032c74e0 (patch)
treef7dbf3e6a7077441bc552324284fc8d55ff75471 /drivers/media/video/em28xx/em28xx-video.c
parent6f2a278171bf7fc8153a42baa26b51d1ecb4c83f (diff)
V4L/DVB (10307): em28xx: use usb_make_path to report bus info
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-video.c')
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index d8b45b5ee041..5b2a19b0cca6 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -1350,7 +1350,7 @@ static int vidioc_querycap(struct file *file, void *priv,
1350 1350
1351 strlcpy(cap->driver, "em28xx", sizeof(cap->driver)); 1351 strlcpy(cap->driver, "em28xx", sizeof(cap->driver));
1352 strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); 1352 strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card));
1353 strlcpy(cap->bus_info, dev_name(&dev->udev->dev), sizeof(cap->bus_info)); 1353 usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
1354 1354
1355 cap->version = EM28XX_VERSION_CODE; 1355 cap->version = EM28XX_VERSION_CODE;
1356 1356
@@ -1501,7 +1501,7 @@ static int radio_querycap(struct file *file, void *priv,
1501 1501
1502 strlcpy(cap->driver, "em28xx", sizeof(cap->driver)); 1502 strlcpy(cap->driver, "em28xx", sizeof(cap->driver));
1503 strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); 1503 strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card));
1504 strlcpy(cap->bus_info, dev_name(&dev->udev->dev), sizeof(cap->bus_info)); 1504 usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));
1505 1505
1506 cap->version = EM28XX_VERSION_CODE; 1506 cap->version = EM28XX_VERSION_CODE;
1507 cap->capabilities = V4L2_CAP_TUNER; 1507 cap->capabilities = V4L2_CAP_TUNER;