summary refs log tree commit diff
path: root/drivers/media/platform/vim2m.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-11-15 03:16:22 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-11-23 04:34:22 -0500
commit47fc65fab146611849c0291bcb92da800e6de445 (patch)
tree0a3b99207de58878124ca2b31f350c65f78e9ea2 /drivers/media/platform/vim2m.c
parent7c91d0a4e1b7160da25a044a9e696f8ba1df3934 (diff)
downloadlinux-47fc65fab146611849c0291bcb92da800e6de445.tar.gz
media: vim2m/vicodec: set device_caps in video_device struct
Instead of setting device_caps/capabilities in the querycap ioctl, set
it in struct video_device instead.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/platform/vim2m.c')
-rw-r--r--drivers/media/platform/vim2m.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/platform/vim2m.c b/drivers/media/platform/vim2m.c
index d82db738f174..035c7b7c8d87 100644
--- a/drivers/media/platform/vim2m.c
+++ b/drivers/media/platform/vim2m.c
@@ -438,8 +438,6 @@ static int vidioc_querycap(struct file *file, void *priv,
 	strncpy(cap->card, MEM2MEM_NAME, sizeof(cap->card) - 1);
 	snprintf(cap->bus_info, sizeof(cap->bus_info),
 			"platform:%s", MEM2MEM_NAME);
-	cap->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING;
-	cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
 	return 0;
 }
 
@@ -999,6 +997,7 @@ static const struct video_device vim2m_videodev = {
 	.ioctl_ops	= &vim2m_ioctl_ops,
 	.minor		= -1,
 	.release	= video_device_release_empty,
+	.device_caps	= V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING,
 };
 
 static const struct v4l2_m2m_ops m2m_ops = {