Skip to content

Commit

Permalink
V4L/DVB (10307): em28xx: 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 6f2a278 commit cb97716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/em28xx/em28xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,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;

Expand Down Expand Up @@ -1501,7 +1501,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;
Expand Down

0 comments on commit cb97716

Please sign in to comment.