summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-04-08 11:27:43 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-15 00:49:43 +0200
commita58841d0dcb79aebc558a1b55d29995f62aa61a4 (patch)
tree7d59149c4657df6798cc52b06ca294d637ccd8b4 /drivers/media/radio
parent[media] radio-si4713: embed struct video_device instead of allocating it (diff)
downloadlinux-a58841d0dcb79aebc558a1b55d29995f62aa61a4.tar.xz
linux-a58841d0dcb79aebc558a1b55d29995f62aa61a4.zip
[media] radio-si4713: improve querycap
Set bus_info and fill in device_caps. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Eduardo Valentin <edubezval@gmail.com> Tested-by: Eduardo Valentin <edubezval@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r--drivers/media/radio/radio-si4713.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-si4713.c b/drivers/media/radio/radio-si4713.c
index 70dc6527a12c..f0f0a90c69ed 100644
--- a/drivers/media/radio/radio-si4713.c
+++ b/drivers/media/radio/radio-si4713.c
@@ -67,7 +67,10 @@ static int radio_si4713_querycap(struct file *file, void *priv,
strlcpy(capability->driver, "radio-si4713", sizeof(capability->driver));
strlcpy(capability->card, "Silicon Labs Si4713 Modulator",
sizeof(capability->card));
- capability->capabilities = V4L2_CAP_MODULATOR | V4L2_CAP_RDS_OUTPUT;
+ strlcpy(capability->bus_info, "platform:radio-si4713",
+ sizeof(capability->bus_info));
+ capability->device_caps = V4L2_CAP_MODULATOR | V4L2_CAP_RDS_OUTPUT;
+ capability->capabilities = capability->device_caps | V4L2_CAP_DEVICE_CAPS;
return 0;
}