mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
media: pxa_camera: don't set caps in querycap
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>
This commit is contained in:
parent
34828fad5e
commit
de5b9b7197
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user