aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-mr800.c
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2009-01-25 18:05:58 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:27 -0400
commitc7181cfa6b8fa54ea4f3361e111afb60b095297a (patch)
tree3aad836618af54959228e0463a828f02b5df46b8 /drivers/media/radio/radio-mr800.c
parentd0852ed27c650237800470b5cbde368316813406 (diff)
V4L/DVB (10316): v4l/dvb: use usb_make_path in usb-radio drivers
Place usb_make_path in dsbr100.c, radio-mr800.c, radio-si470x.c that used when reporting bus_info information in vidioc_querycap. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-mr800.c')
-rw-r--r--drivers/media/radio/radio-mr800.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c
index fdfc7bf86b9e..624e98b575cf 100644
--- a/drivers/media/radio/radio-mr800.c
+++ b/drivers/media/radio/radio-mr800.c
@@ -313,9 +313,11 @@ static void usb_amradio_disconnect(struct usb_interface *intf)
313static int vidioc_querycap(struct file *file, void *priv, 313static int vidioc_querycap(struct file *file, void *priv,
314 struct v4l2_capability *v) 314 struct v4l2_capability *v)
315{ 315{
316 struct amradio_device *radio = video_drvdata(file);
317
316 strlcpy(v->driver, "radio-mr800", sizeof(v->driver)); 318 strlcpy(v->driver, "radio-mr800", sizeof(v->driver));
317 strlcpy(v->card, "AverMedia MR 800 USB FM Radio", sizeof(v->card)); 319 strlcpy(v->card, "AverMedia MR 800 USB FM Radio", sizeof(v->card));
318 sprintf(v->bus_info, "USB"); 320 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info));
319 v->version = RADIO_VERSION; 321 v->version = RADIO_VERSION;
320 v->capabilities = V4L2_CAP_TUNER; 322 v->capabilities = V4L2_CAP_TUNER;
321 return 0; 323 return 0;