From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDB5F28F51D; Fri, 1 Aug 2025 21:19:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754083199; cv=none; b=DuT/CXMNH5MppLlZtKCwP8ljSgiYSQSMMgRkANYlWZ26tOjz+lLw19XD8XgAC7+uA07L8Tk5dVXfqdwr49/P4YGS39e9M7+pHF9jT1AhC5DoRYHClSRu++UJwW3R7YNGQc9bW71QWKfDDfMEpAra5hs352jhV6ZPXsFtzNx8kn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754083199; c=relaxed/simple; bh=6azXtqGMpJWXKSXmySPb38jfxI6R81GYHePRpzwybRc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gPh6IHH8/3ZT7pUcfjlqofA3iaCcN49sgVZzAphLtgkWMQ4v7FHNFrquSs1E64PXPSFMugFkoXx+JVHxBeVcSliYdbhtWidSYIjiXOvocuk18M/67gC3CRtIeRboeLSyTlQlUZn7/3GVNtKYEPWIXXXTTY+usbNto8c7kgfMJxA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=FYN4wVbj; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="FYN4wVbj" Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with UTF8SMTPSA id BEF26666; Fri, 1 Aug 2025 23:19:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1754083145; bh=6azXtqGMpJWXKSXmySPb38jfxI6R81GYHePRpzwybRc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FYN4wVbj2FWQj8iNtRbAatzdaFO0krgSEbklmZqKGYL/MSw3H4qvqWtcyDUysc3UN f+QZmEAwEjbmjgyVn4VTGbJjydMxc0SHZV7HBQhLcl1wi5LFaxIMlRpkzil4f+3x2G SaUa4lJmQkRZVeKjOPuoVP2qlZwiFh9ZIhI6SBzw= From: Laurent Pinchart To: linux-media@vger.kernel.org Cc: Hans de Goede , Sakari Ailus , Steve Longerbeam , Philipp Zabel , Hans Verkuil , linux-staging@lists.linux.dev, imx@lists.linux.dev Subject: [PATCH 3/3] media: staging: imx: Drop custom .unsubscribe_event() handler Date: Sat, 2 Aug 2025 00:19:33 +0300 Message-ID: <20250801211933.22553-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.49.1 In-Reply-To: <20250801211933.22553-1-laurent.pinchart@ideasonboard.com> References: <20250801211933.22553-1-laurent.pinchart@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The csi_unsubscribe_event() function simply calls v4l2_event_unsubscribe(), forwarding its arguments. Replace it with the v4l2_event_subdev_unsubscribe() helper that performs exactly the same operation. Signed-off-by: Laurent Pinchart --- drivers/staging/media/imx/imx-media-csi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/media/imx/imx-media-csi.c b/drivers/staging/media/imx/imx-media-csi.c index a7cd3ef95fc3..fd7e37d803e7 100644 --- a/drivers/staging/media/imx/imx-media-csi.c +++ b/drivers/staging/media/imx/imx-media-csi.c @@ -1751,12 +1751,6 @@ static int csi_subscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, return v4l2_event_subscribe(fh, sub, 0, NULL); } -static int csi_unsubscribe_event(struct v4l2_subdev *sd, struct v4l2_fh *fh, - struct v4l2_event_subscription *sub) -{ - return v4l2_event_unsubscribe(fh, sub); -} - static int csi_registered(struct v4l2_subdev *sd) { struct csi_priv *priv = v4l2_get_subdevdata(sd); @@ -1872,7 +1866,7 @@ static const struct media_entity_operations csi_entity_ops = { static const struct v4l2_subdev_core_ops csi_core_ops = { .subscribe_event = csi_subscribe_event, - .unsubscribe_event = csi_unsubscribe_event, + .unsubscribe_event = v4l2_event_subdev_unsubscribe, }; static const struct v4l2_subdev_video_ops csi_video_ops = { -- Regards, Laurent Pinchart