[media] sh-vou: fix querycap support
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 7 Jun 2015 08:57:57 +0000 (05:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 6 Jul 2015 11:26:09 +0000 (08:26 -0300)
Fix v4l2-compliance errors due to empty driver and bus_info fields.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/sh_vou.c

index 801d5ef4dc289d2e589bdce02f1c2dfff1984551..d7a72a9ba90b739e5812b28e91a517f9c07df221 100644 (file)
@@ -396,6 +396,8 @@ static int sh_vou_querycap(struct file *file, void  *priv,
        dev_dbg(vou_dev->v4l2_dev.dev, "%s()\n", __func__);
 
        strlcpy(cap->card, "SuperH VOU", sizeof(cap->card));
+       strlcpy(cap->driver, "sh-vou", sizeof(cap->driver));
+       strlcpy(cap->bus_info, "platform:sh-vou", sizeof(cap->bus_info));
        cap->device_caps = V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_STREAMING;
        cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
        return 0;