summaryrefslogtreecommitdiff
path: root/linux/drivers/media/radio
diff options
context:
space:
mode:
authorDouglas Schilling Landgraf <dougsland@redhat.com>2009-02-05 23:52:29 -0200
committerDouglas Schilling Landgraf <dougsland@redhat.com>2009-02-05 23:52:29 -0200
commitc25f9358cc7b4f70622195b02aa6b33fb522bce8 (patch)
tree98172595f391f0d029907a02a3929a6a851aedcd /linux/drivers/media/radio
parent2b47bb2b85cbd75eff389304c2b55bebecfb4755 (diff)
downloadmediapointer-dvb-s2-c25f9358cc7b4f70622195b02aa6b33fb522bce8.tar.gz
mediapointer-dvb-s2-c25f9358cc7b4f70622195b02aa6b33fb522bce8.tar.bz2
radio-si470x: use usb_make_path in usb-radio drivers
From: Alexey Klimov <klimov.linux@gmail.com> Place usb_make_path in radio-si470x.c that used when reporting bus_info information in vidioc_querycap. Priority: normal Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net> 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')
-rw-r--r--linux/drivers/media/radio/radio-si470x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-si470x.c b/linux/drivers/media/radio/radio-si470x.c
index f3cdf3af4..f77a65d2a 100644
--- a/linux/drivers/media/radio/radio-si470x.c
+++ b/linux/drivers/media/radio/radio-si470x.c
@@ -1202,9 +1202,11 @@ static struct v4l2_queryctrl si470x_v4l2_queryctrl[] = {
static int si470x_vidioc_querycap(struct file *file, void *priv,
struct v4l2_capability *capability)
{
+ struct si470x_device *radio = video_drvdata(file);
+
strlcpy(capability->driver, DRIVER_NAME, sizeof(capability->driver));
strlcpy(capability->card, DRIVER_CARD, sizeof(capability->card));
- sprintf(capability->bus_info, "USB");
+ usb_make_path(radio->usbdev, capability->bus_info, sizeof(capability->bus_info));
capability->version = DRIVER_KERNEL_VERSION;
capability->capabilities = V4L2_CAP_HW_FREQ_SEEK |
V4L2_CAP_TUNER | V4L2_CAP_RADIO;