diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 22:01:33 +0100 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 22:01:33 +0100 |
commit | 8d9ad37755717f75c8616e05eb949fc7c9311ae7 (patch) | |
tree | 09c7485b1cdf26271f4332d763dd5f71a9f126c6 /linux/drivers | |
parent | 48bd5d0791a4bfa37b864d064447083d18ec9030 (diff) | |
download | mediapointer-dvb-s2-8d9ad37755717f75c8616e05eb949fc7c9311ae7.tar.gz mediapointer-dvb-s2-8d9ad37755717f75c8616e05eb949fc7c9311ae7.tar.bz2 |
em28xx: use usb_make_path to report bus info
From: Thierry MERLE <thierry.merle@free.fr>
usb_make_path reports canonical bus info. Use it when reporting bus info
in VIDIOC_QUERYCAP.
Priority: normal
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Diffstat (limited to 'linux/drivers')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-video.c b/linux/drivers/media/video/em28xx/em28xx-video.c index 58a16fe8f..50c3af538 100644 --- a/linux/drivers/media/video/em28xx/em28xx-video.c +++ b/linux/drivers/media/video/em28xx/em28xx-video.c @@ -1360,7 +1360,7 @@ static int vidioc_querycap(struct file *file, void *priv, strlcpy(cap->driver, "em28xx", sizeof(cap->driver)); strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); - strlcpy(cap->bus_info, dev_name(&dev->udev->dev), sizeof(cap->bus_info)); + usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap->version = EM28XX_VERSION_CODE; @@ -1548,7 +1548,7 @@ static int radio_querycap(struct file *file, void *priv, strlcpy(cap->driver, "em28xx", sizeof(cap->driver)); strlcpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); - strlcpy(cap->bus_info, dev_name(&dev->udev->dev), sizeof(cap->bus_info)); + usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap->version = EM28XX_VERSION_CODE; cap->capabilities = V4L2_CAP_TUNER; |