aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/pwc/pwc-v4l.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-06-04 07:19:53 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-05 08:24:49 -0400
commit8c3854d03bd7b86e8f36e6d9b07b4a6bc20deccd (patch)
tree61c61149adad3b110f65dd27341053dd32214856 /drivers/media/usb/pwc/pwc-v4l.c
parente83ce3005db16243e1085925251fd0776bb60d09 (diff)
media: media/usb: 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. But this only really works if all drivers use this, so convert all usb drivers in this patch. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-v4l.c')
-rw-r--r--drivers/media/usb/pwc/pwc-v4l.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/usb/pwc/pwc-v4l.c b/drivers/media/usb/pwc/pwc-v4l.c
index bef6e4ef8a7e..85efb433c004 100644
--- a/drivers/media/usb/pwc/pwc-v4l.c
+++ b/drivers/media/usb/pwc/pwc-v4l.c
@@ -495,9 +495,6 @@ static int pwc_querycap(struct file *file, void *fh, struct v4l2_capability *cap
495 strscpy(cap->driver, PWC_NAME, sizeof(cap->driver)); 495 strscpy(cap->driver, PWC_NAME, sizeof(cap->driver));
496 strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); 496 strscpy(cap->card, pdev->vdev.name, sizeof(cap->card));
497 usb_make_path(pdev->udev, cap->bus_info, sizeof(cap->bus_info)); 497 usb_make_path(pdev->udev, cap->bus_info, sizeof(cap->bus_info));
498 cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING |
499 V4L2_CAP_READWRITE;
500 cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
501 return 0; 498 return 0;
502} 499}
503 500