From patchwork Mon Nov 28 15:23:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 26829 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp5750461wrr; Mon, 28 Nov 2022 07:28:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Fx480fwr076R2oXKs9V2tq5mZQHwpzv12QDiGB0TDTcaLmQrGr0uegcFCeVCaK5s2EgX6 X-Received: by 2002:a17:907:2a10:b0:7a7:9b01:2a6c with SMTP id fd16-20020a1709072a1000b007a79b012a6cmr44107263ejc.153.1669649310108; Mon, 28 Nov 2022 07:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669649310; cv=none; d=google.com; s=arc-20160816; b=o2qqsIaraSJkgPDGIi1/K/4zyQkOIfICdaAWZfal22KpzbopOelVvW9K3tbj6NxywP SujLzxEgFV53lbPc5S/JauQuD1zBpykp7SKYffKcgEim8BxVxfRxFdxqNyjbaJdajjDE zpbv6wQBbuWGeLuGZ+ZqBYPJYemwCHzqptbO60sPaAB9RXaYhZ0hMvyF1SfHjAdpQVbC cPGvqau8E4+adQSL9WQGdUVHuuYWluca6AyHpedel8g7IYChmg4OfXW/Im6zxoa8GdFO EI9ylT7s4QMOsvPUtU+lCrRyrbdzE8LCUPCf4dQ/s8AUr4wnDuwz9GGEe/cBw835HbRR dTWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EgVAaPNMJa89SI0rNjqHrlIDAE7eORtVFsqm8m2Ny+g=; b=TMyVBsXKvE+zpS9R3OKUXbed57ffUWrR9Usz/Wnr6BAhgbOzp0W0uWzo5yngxbMMAJ 3S2qPV2Ld7jMrxCvwJuKOL/0LF/HpajI2mBIo3qtAXo1+ry+Fi6VwdQ2B7k3dsHoZrJT 3IAu8IFAaL93plsrccy2SgG2ywZqptjWfARMEZrjK+9VXHbGPYvoIxqQbx1HDKuEkOmW ThNqIGu2jevWuQ1iL9hTMVN4Fp6g1n/9wEKCXaC+A+2UjqDbirzF3ffGuk3xAUC3km79 8PGzk1awQHPCxjyJVow4Db1m2YfyGK9uFn+xxXL3HRMNOZdROPmhWlFt5c8xWcH0dZO0 tiwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WUrJKg9y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq29-20020a1709073f1d00b007ae29da29b3si11702943ejc.731.2022.11.28.07.28.01; Mon, 28 Nov 2022 07:28:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WUrJKg9y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231425AbiK1P0l (ORCPT + 99 others); Mon, 28 Nov 2022 10:26:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232087AbiK1P0L (ORCPT ); Mon, 28 Nov 2022 10:26:11 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A70AA25E82; Mon, 28 Nov 2022 07:24:58 -0800 (PST) Received: from booty.fritz.box (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id DCC0D100006; Mon, 28 Nov 2022 15:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1669649097; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EgVAaPNMJa89SI0rNjqHrlIDAE7eORtVFsqm8m2Ny+g=; b=WUrJKg9yzZ9NkoBqASH+lKBV0cype1yTj8T7j+hkookcsGFW/g/E2W01bYccLE5OVRR6kc FnMbKA74Fl+OTsb7Z9E1HHq7NcQZLY+KXfN0kaXo1V/5d8REQGbOIDRM9YOyc3Jo/caoIU CitO7VOwYMpKDfuE45PFXe2KjydQBANpYbJXDbjQKj0Dn5hI85GmJ69aqWe4qSf8USMsIj f+LQo5ZAW8o3IWBR3zX1xkmHIqofnvrtH45WSC5qMWi4aKnkp6CkHNK5M47J+aPe9dhsh1 D2pCbaw4aw3A2At9xVe68RNkMj6BoJRUWZiSpiJhPYr3/Gj0zbVghLvc4eVEMQ== From: Luca Ceresoli To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , Hans Verkuil Cc: Luca Ceresoli , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Thomas Petazzoni , Paul Kocialkowski , Richard Leitner Subject: [PATCH v2 09/21] staging: media: tegra-video: move private struct declaration to C file Date: Mon, 28 Nov 2022 16:23:24 +0100 Message-Id: <20221128152336.133953-10-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221128152336.133953-1-luca.ceresoli@bootlin.com> References: <20221128152336.133953-1-luca.ceresoli@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750754194945459324?= X-GMAIL-MSGID: =?utf-8?q?1750754194945459324?= struct tegra_vi_graph_entity is an internal implementation detail of the VI module. Move its declaration from vi.h to vi.c. Signed-off-by: Luca Ceresoli --- No changes in v2 --- drivers/staging/media/tegra-video/vi.c | 13 +++++++++++++ drivers/staging/media/tegra-video/vi.h | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index 2657207e5b7d..55a135bef1a9 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -31,6 +31,19 @@ #define MAX_CID_CONTROLS 1 +/** + * struct tegra_vi_graph_entity - Entity in the video graph + * + * @asd: subdev asynchronous registration information + * @entity: media entity from the corresponding V4L2 subdev + * @subdev: V4L2 subdev + */ +struct tegra_vi_graph_entity { + struct v4l2_async_subdev asd; + struct media_entity *entity; + struct v4l2_subdev *subdev; +}; + static const struct tegra_video_format tegra_default_format = { .img_dt = TEGRA_IMAGE_DT_RAW10, .bit_width = 10, diff --git a/drivers/staging/media/tegra-video/vi.h b/drivers/staging/media/tegra-video/vi.h index dd35c3ac992b..dfd834a69848 100644 --- a/drivers/staging/media/tegra-video/vi.h +++ b/drivers/staging/media/tegra-video/vi.h @@ -98,19 +98,6 @@ struct tegra_vi { struct list_head vi_chans; }; -/** - * struct tegra_vi_graph_entity - Entity in the video graph - * - * @asd: subdev asynchronous registration information - * @entity: media entity from the corresponding V4L2 subdev - * @subdev: V4L2 subdev - */ -struct tegra_vi_graph_entity { - struct v4l2_async_subdev asd; - struct media_entity *entity; - struct v4l2_subdev *subdev; -}; - /** * struct tegra_vi_channel - Tegra video channel *