mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 19:56:43 +07: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->bus_info, "platform:pxa-camera", sizeof(cap->bus_info));
|
||||||
strscpy(cap->driver, PXA_CAM_DRV_NAME, sizeof(cap->driver));
|
strscpy(cap->driver, PXA_CAM_DRV_NAME, sizeof(cap->driver));
|
||||||
strscpy(cap->card, pxa_cam_driver_description, sizeof(cap->card));
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user