diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2009-02-05 20:52:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:41 -0400 |
commit | dc025d4a1afac9576987748f15e9ba47c7bd20db (patch) | |
tree | 5a8e88be50a14be03509eccfa4e39be333452aa3 | |
parent | e57458dc7086bac9e05b6fc6d5ab336de1647c12 (diff) |
V4L/DVB (10464): radio-si470x: use usb_make_path in usb-radio drivers
Place usb_make_path in radio-si470x.c that used when reporting bus_info
information in vidioc_querycap.
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/radio/radio-si470x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index 4dfed6aa2dbc..dc72803ad209 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -1226,9 +1226,11 @@ static struct v4l2_queryctrl si470x_v4l2_queryctrl[] = { | |||
1226 | static int si470x_vidioc_querycap(struct file *file, void *priv, | 1226 | static int si470x_vidioc_querycap(struct file *file, void *priv, |
1227 | struct v4l2_capability *capability) | 1227 | struct v4l2_capability *capability) |
1228 | { | 1228 | { |
1229 | struct si470x_device *radio = video_drvdata(file); | ||
1230 | |||
1229 | strlcpy(capability->driver, DRIVER_NAME, sizeof(capability->driver)); | 1231 | strlcpy(capability->driver, DRIVER_NAME, sizeof(capability->driver)); |
1230 | strlcpy(capability->card, DRIVER_CARD, sizeof(capability->card)); | 1232 | strlcpy(capability->card, DRIVER_CARD, sizeof(capability->card)); |
1231 | sprintf(capability->bus_info, "USB"); | 1233 | usb_make_path(radio->usbdev, capability->bus_info, sizeof(capability->bus_info)); |
1232 | capability->version = DRIVER_KERNEL_VERSION; | 1234 | capability->version = DRIVER_KERNEL_VERSION; |
1233 | capability->capabilities = V4L2_CAP_HW_FREQ_SEEK | | 1235 | capability->capabilities = V4L2_CAP_HW_FREQ_SEEK | |
1234 | V4L2_CAP_TUNER | V4L2_CAP_RADIO; | 1236 | V4L2_CAP_TUNER | V4L2_CAP_RADIO; |