diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2019-06-26 10:30:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-01 08:48:41 +0200 |
commit | 338d9637361c87730be5960585cc481cd144cf20 (patch) | |
tree | 8da344f6042e1976de63ee096bad61be2cd337e3 /drivers | |
parent | a9f69bd555ccfa64e3460ed7c5321e1f1c34536d (diff) | |
download | lwn-338d9637361c87730be5960585cc481cd144cf20.tar.gz lwn-338d9637361c87730be5960585cc481cd144cf20.zip |
staging/most/video: set device_caps in struct video_device
Instead of filling in the struct v4l2_capability device_caps
field, fill in the struct video_device device_caps field.
That way the V4L2 core knows what the capabilities of the
video device are.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/most/video/video.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index 19ae7c4873b4..6f6e98ab0550 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -250,11 +250,6 @@ static int vidioc_querycap(struct file *file, void *priv, strlcpy(cap->card, "MOST", sizeof(cap->card)); snprintf(cap->bus_info, sizeof(cap->bus_info), "%s", mdev->iface->description); - - cap->capabilities = - V4L2_CAP_READWRITE | - V4L2_CAP_TUNER | - V4L2_CAP_VIDEO_CAPTURE; return 0; } @@ -366,6 +361,7 @@ static const struct video_device comp_videodev_template = { .release = video_device_release, .ioctl_ops = &video_ioctl_ops, .tvnorms = V4L2_STD_UNKNOWN, + .device_caps = V4L2_CAP_READWRITE | V4L2_CAP_VIDEO_CAPTURE, }; /**************************************************************************/ |