|
@@ -742,16 +742,13 @@ static void fimc_capture_try_selection(struct fimc_ctx *ctx,
|
|
|
/*
|
|
|
* The video node ioctl operations
|
|
|
*/
|
|
|
-static int fimc_vidioc_querycap_capture(struct file *file, void *priv,
|
|
|
+static int fimc_cap_querycap(struct file *file, void *priv,
|
|
|
struct v4l2_capability *cap)
|
|
|
{
|
|
|
struct fimc_dev *fimc = video_drvdata(file);
|
|
|
|
|
|
- strncpy(cap->driver, fimc->pdev->name, sizeof(cap->driver) - 1);
|
|
|
- strncpy(cap->card, fimc->pdev->name, sizeof(cap->card) - 1);
|
|
|
- cap->bus_info[0] = 0;
|
|
|
- cap->capabilities = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_CAPTURE_MPLANE;
|
|
|
-
|
|
|
+ __fimc_vidioc_querycap(&fimc->pdev->dev, cap, V4L2_CAP_STREAMING |
|
|
|
+ V4L2_CAP_VIDEO_CAPTURE_MPLANE);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -1375,7 +1372,7 @@ static int fimc_cap_s_selection(struct file *file, void *fh,
|
|
|
}
|
|
|
|
|
|
static const struct v4l2_ioctl_ops fimc_capture_ioctl_ops = {
|
|
|
- .vidioc_querycap = fimc_vidioc_querycap_capture,
|
|
|
+ .vidioc_querycap = fimc_cap_querycap,
|
|
|
|
|
|
.vidioc_enum_fmt_vid_cap_mplane = fimc_cap_enum_fmt_mplane,
|
|
|
.vidioc_try_fmt_vid_cap_mplane = fimc_cap_try_fmt_mplane,
|