summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio/radio-mr800.c
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@redhat.com>2009-01-25 21:05:58 -0200
committerDouglas Schilling Landgraf <dougsland@redhat.com>2009-01-25 21:05:58 -0200
commitd7274e08881bc13ea807d8c6c91f8461aadfdcdb (patch)
treee7f0d0d8d1c5bc873d2cb9849986eba614b02a62 /linux/drivers/media/radio/radio-mr800.c
parent7675a6ebbda69456487f54377309a922b4f415e9 (diff)
downloadmediapointer-dvb-s2-d7274e08881bc13ea807d8c6c91f8461aadfdcdb.tar.gz
mediapointer-dvb-s2-d7274e08881bc13ea807d8c6c91f8461aadfdcdb.tar.bz2
v4l/dvb: use usb_make_path in usb-radio drivers
From: Alexey Klimov <klimov.linux@gmail.com> Place usb_make_path in dsbr100.c, radio-mr800.c, radio-si470x.c that used when reporting bus_info information in vidioc_querycap. Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Diffstat (limited to 'linux/drivers/media/radio/radio-mr800.c')
-rw-r--r--linux/drivers/media/radio/radio-mr800.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-mr800.c b/linux/drivers/media/radio/radio-mr800.c
index 6b1794989..ebd10cb2e 100644
--- a/linux/drivers/media/radio/radio-mr800.c
+++ b/linux/drivers/media/radio/radio-mr800.c
@@ -316,9 +316,11 @@ static void usb_amradio_disconnect(struct usb_interface *intf)
static int vidioc_querycap(struct file *file, void *priv,
struct v4l2_capability *v)
{
+ struct amradio_device *radio = video_drvdata(file);
+
strlcpy(v->driver, "radio-mr800", sizeof(v->driver));
strlcpy(v->card, "AverMedia MR 800 USB FM Radio", sizeof(v->card));
- sprintf(v->bus_info, "USB");
+ usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info));
v->version = RADIO_VERSION;
v->capabilities = V4L2_CAP_TUNER;
return 0;