[media] radio-si4713: improve querycap
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 8 Apr 2013 09:27:43 +0000 (06:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 22:49:43 +0000 (19:49 -0300)
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>
drivers/media/radio/radio-si4713.c

index 70dc652..f0f0a90 100644 (file)
@@ -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;
 }