From patchwork Tue May 10 11:58:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 571440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AC1C3C433EF for ; Tue, 10 May 2022 12:00:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241518AbiEJMES (ORCPT ); Tue, 10 May 2022 08:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240882AbiEJMEO (ORCPT ); Tue, 10 May 2022 08:04:14 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D03E046673 for ; Tue, 10 May 2022 05:00:16 -0700 (PDT) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 705FF19AD; Tue, 10 May 2022 13:59:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652183992; bh=7TZAvmLE3VyU/IP2y4JQZc51w8dX52N/5RgRLrzd8oU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CN5hc/77MmGC2QXy+NbdjEZSJjMcJxAFZwQWpo7cPdKR9MCrvXYpa0cbfqiYgHa5j s1LOm2+jE4UQL8WsAeQr2wldiH+gODXTlF3afDlFweQe1aq4h7x1CP8gXTjMkjhdI4 bwazDQTqh5RYJAD7KEsUltIpivJXeqEy+j+T9GOI= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Rui Miguel Silva , Steve Longerbeam , Philipp Zabel , Jacopo Mondi , Martin Kepplinger , Alexander Stein , Dorota Czaplejewicz , kernel@pengutronix.de Subject: [PATCH 49/50] staging: media: imx: imx7-media-csi: Drop V4L2 events support Date: Tue, 10 May 2022 14:58:58 +0300 Message-Id: <20220510115859.19777-50-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220510115859.19777-1-laurent.pinchart@ideasonboard.com> References: <20220510115859.19777-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 --- drivers/staging/media/imx/imx7-media-csi.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index 0bf69933f1bd..ae74256755f4 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -22,14 +22,12 @@ #include #include -#include #include #include #include #include #include -#include #include "imx-media.h" #define IMX7_CSI_PAD_SINK 0 @@ -1212,17 +1210,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, @@ -1244,9 +1231,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, }; /* -----------------------------------------------------------------------------