summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-10 03:06:45 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-08 18:03:10 +0100
commitfc9d988a5acdb68d39e9e76870627d48068bf830 (patch)
tree6d7b5216ed8cfef455b6249ffc703f852fe36e04
parent67c4b3f2e344bc61e288ace618a035495973e843 (diff)
downloadlinux-stable-fc9d988a5acdb68d39e9e76870627d48068bf830.tar.gz
linux-stable-fc9d988a5acdb68d39e9e76870627d48068bf830.tar.bz2
linux-stable-fc9d988a5acdb68d39e9e76870627d48068bf830.zip
media: staging: media: imx: imx7-media-csi: Drop V4L2 events support
The only event that the driver allows subscribing to, V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR, is never generated. Drop events support. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Rui Miguel Silva <rmfrfs@gmail.com> Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
-rw-r--r--drivers/staging/media/imx/imx7-media-csi.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c
index 40910005534b..e3fab527c4d9 100644
--- a/drivers/staging/media/imx/imx7-media-csi.c
+++ b/drivers/staging/media/imx/imx7-media-csi.c
@@ -22,14 +22,12 @@
#include <linux/types.h>
#include <media/v4l2-device.h>
-#include <media/v4l2-event.h>
#include <media/v4l2-fwnode.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-mc.h>
#include <media/v4l2-subdev.h>
#include <media/videobuf2-dma-contig.h>
-#include <media/imx.h>
#include "imx-media.h"
#define IMX7_CSI_PAD_SINK 0
@@ -1214,17 +1212,6 @@ static int imx7_csi_video_g_selection(struct file *file, void *fh,
return 0;
}
-static int imx7_csi_video_subscribe_event(struct v4l2_fh *fh,
- const struct v4l2_event_subscription *sub)
-{
- switch (sub->type) {
- case V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR:
- return v4l2_event_subscribe(fh, sub, 0, NULL);
- default:
- return -EINVAL;
- }
-}
-
static const struct v4l2_ioctl_ops imx7_csi_video_ioctl_ops = {
.vidioc_querycap = imx7_csi_video_querycap,
@@ -1246,9 +1233,6 @@ static const struct v4l2_ioctl_ops imx7_csi_video_ioctl_ops = {
.vidioc_expbuf = vb2_ioctl_expbuf,
.vidioc_streamon = vb2_ioctl_streamon,
.vidioc_streamoff = vb2_ioctl_streamoff,
-
- .vidioc_subscribe_event = imx7_csi_video_subscribe_event,
- .vidioc_unsubscribe_event = v4l2_event_unsubscribe,
};
/* -----------------------------------------------------------------------------