Skip to content

Commit

Permalink
V4L/DVB (10309): s2255drv: use usb_make_path to report bus info
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry MERLE authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent b12049a commit e22ed88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/s2255drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,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;
Expand Down

0 comments on commit e22ed88

Please sign in to comment.