diff options
author | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 22:19:25 +0100 |
---|---|---|
committer | Thierry MERLE <thierry.merle@free.fr> | 2009-01-20 22:19:25 +0100 |
commit | 66be1e92cb9080a37ed87cba444d46cc84ea4f9b (patch) | |
tree | d54b93b7841fcc5695126a700db54e86eacbbe5d /linux/drivers/media/video/s2255drv.c | |
parent | 84a2c3b589a287878dce4e2b7380b9250bc56392 (diff) | |
download | mediapointer-dvb-s2-66be1e92cb9080a37ed87cba444d46cc84ea4f9b.tar.gz mediapointer-dvb-s2-66be1e92cb9080a37ed87cba444d46cc84ea4f9b.tar.bz2 |
s2255drv: 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/media/video/s2255drv.c')
-rw-r--r-- | linux/drivers/media/video/s2255drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/s2255drv.c b/linux/drivers/media/video/s2255drv.c index ffa2928b2..edfac2f9e 100644 --- a/linux/drivers/media/video/s2255drv.c +++ b/linux/drivers/media/video/s2255drv.c @@ -847,8 +847,7 @@ static int vidioc_querycap(struct file *file, void *priv, struct s2255_dev *dev = fh->dev; strlcpy(cap->driver, "s2255", sizeof(cap->driver)); strlcpy(cap->card, "s2255", 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 = S2255_VERSION; cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING; return 0; |