diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2015-06-07 11:57:57 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-07-06 14:26:09 +0300 |
commit | d8046ee09f843cb314a660f589a334bce84a7efa (patch) | |
tree | e55614fee3dd00f4f6c1471a253e768e247c75f7 | |
parent | 4690271ce14cd4cf4796e0b6631978d151abe8e4 (diff) | |
download | linux-d8046ee09f843cb314a660f589a334bce84a7efa.tar.xz |
[media] sh-vou: fix querycap support
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>
-rw-r--r-- | drivers/media/platform/sh_vou.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c index 801d5ef4dc28..d7a72a9ba90b 100644 --- a/drivers/media/platform/sh_vou.c +++ b/drivers/media/platform/sh_vou.c @@ -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; |