summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vivi.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-14 06:23:12 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 09:32:41 -0300
commit72c2af6ec1485604c6aa068cca2932d48d8a5f7a (patch)
treee648cee8517ce47a2cf3ee09b3a6a11f88c81543 /drivers/media/platform/vivi.c
parentcd56c8dd50fab57520f0cf80cee5de552c1680ed (diff)
downloadblackbird-op-linux-72c2af6ec1485604c6aa068cca2932d48d8a5f7a.tar.gz
blackbird-op-linux-72c2af6ec1485604c6aa068cca2932d48d8a5f7a.zip
[media] vivi/mem2mem_testdev: update to latest bus_info specification
Prefix bus_info with "platform:". Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/vivi.c')
-rw-r--r--drivers/media/platform/vivi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/platform/vivi.c b/drivers/media/platform/vivi.c
index fca80193aa6e..c396da12ad89 100644
--- a/drivers/media/platform/vivi.c
+++ b/drivers/media/platform/vivi.c
@@ -898,7 +898,8 @@ static int vidioc_querycap(struct file *file, void *priv,
strcpy(cap->driver, "vivi");
strcpy(cap->card, "vivi");
- strlcpy(cap->bus_info, dev->v4l2_dev.name, sizeof(cap->bus_info));
+ snprintf(cap->bus_info, sizeof(cap->bus_info),
+ "platform:%s", dev->v4l2_dev.name);
cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING |
V4L2_CAP_READWRITE;
cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
OpenPOWER on IntegriCloud