mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
6f2a278171
commit
cb97716f3b
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue