media: pxa_camera: don't set caps in querycap
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 26 Jun 2019 07:14:39 +0000 (03:14 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 22 Jul 2019 19:07:10 +0000 (15:07 -0400)
The device_caps in struct video_device are already set correctly,
so there is no need to set them in querycap again.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/pxa_camera.c

index 1c9bfaa..53682da 100644 (file)
@@ -1992,9 +1992,6 @@ static int pxac_vidioc_querycap(struct file *file, void *priv,
        strscpy(cap->bus_info, "platform:pxa-camera", sizeof(cap->bus_info));
        strscpy(cap->driver, PXA_CAM_DRV_NAME, sizeof(cap->driver));
        strscpy(cap->card, pxa_cam_driver_description, sizeof(cap->card));
-       cap->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING;
-       cap->capabilities = cap->device_caps | V4L2_CAP_DEVICE_CAPS;
-
        return 0;
 }