Skip to content

Commit

Permalink
V4L/DVB (11135): cx231xx: use usb_make_path() for bus_info
Browse files Browse the repository at this point in the history
VIDIOC_QUERYCAP should return the proper bus info. In the case of USB, this
should be generated by usb_make_path(), being something like:
	usb-0000:00:1d.7-2

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 7, 2009
1 parent 4be1ad3 commit 2c6beca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/cx231xx/cx231xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,8 +1640,7 @@ static int vidioc_querycap(struct file *file, void *priv,

strlcpy(cap->driver, "cx231xx", sizeof(cap->driver));
strlcpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card));
strlcpy(cap->bus_info, dev->v4l2_dev.name,
sizeof(cap->bus_info));
usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info));

cap->version = CX231XX_VERSION_CODE;

Expand Down

0 comments on commit 2c6beca

Please sign in to comment.