From patchwork Mon Jan 30 14:15:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 50313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2203892wrn; Mon, 30 Jan 2023 06:19:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXu9LqDInzc85BMNVlFaIiy3HdeUXX+TW4z+Sc5w0hfthoAsxfc/b5DZE+BoKkOPV/igVKos X-Received: by 2002:aa7:c052:0:b0:475:dddc:374a with SMTP id k18-20020aa7c052000000b00475dddc374amr52001163edo.18.1675088374107; Mon, 30 Jan 2023 06:19:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675088374; cv=none; d=google.com; s=arc-20160816; b=t4UfDowwVnklEAT0cwhoMRheEQu4FZkmv7wfiCfop4XVPrXhQsjZxezFqUp2IlOslL oKelvQA6LsahbXqjk+GezEM2H2YBImyIaw3aFw05GK8CAfIALwwi6Z/gIifnfuEPGY/0 0BcBbea1AD282Y5rHhAslb5SA6iPcuhn7TvmlnmIi0bmm8eKdrf5EXz66696GtTFiI67 KHA0hC26Zu/q3CqcRFNsEqlqRerdn5R/+TShQVzKC/DbPKqj8kx7v3XNLBOqaIpzXuyw IDhQeJMN63t6dWKj+1CUzVBLS9OoK/D4d8AsFr44gAaZpdv6kAU7SnplySR2HBfIEHBX 8Tew== 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=YVn0bFe++VEmvAyVnkdMGRVeBq4VH9gdvivsVHKFovE=; b=RsVtA10zkGMfV7MsM+s5mqrCP1UvuFmKd0y/7UuOwFV40O6omN5ld2y/+4klDuKDcw IhxgD76ICqS+yGwqhKGxMdOjloNL3R/zpThXjyVryWfNd+jLp5S5dQw+xDzGplpFJJxP 4iFalss9zkDGco18EHa2VUeXW35F3qMwBFm8rk13uUnCivDzh5Hu2WMz/QpcmX2ILSfv oEfze4y6CNf6xnCo/faF16owAtRrVESj823vITvG3LDJdf0xf+osZdSHAPQLOtfu/D9h TvB+oeV/P65V0cRML0QaeqRmn5hrFzObCo4xkbyc/1JbgzSEoRkl0QK+4z+j3TTA51m5 xymQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UKwhWdSc; 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 l7-20020a056402028700b004596d6e78e3si13185153edv.144.2023.01.30.06.19.10; Mon, 30 Jan 2023 06:19:34 -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=UKwhWdSc; 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 S237516AbjA3OSL (ORCPT + 99 others); Mon, 30 Jan 2023 09:18:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237509AbjA3ORj (ORCPT ); Mon, 30 Jan 2023 09:17:39 -0500 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E9C3E0B2; Mon, 30 Jan 2023 06:17:07 -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 5C5A4100006; Mon, 30 Jan 2023 14:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675088226; 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=YVn0bFe++VEmvAyVnkdMGRVeBq4VH9gdvivsVHKFovE=; b=UKwhWdScgcrVGbzASdhm22aLNdtXcxr0aJUdciSzfgSEgQhIICsyHRmXd1JMpeyuRGu7sE RIPkjlZovXORNxAWBkPQESRfASm83ptMWT3hhktGB19BAx8cCLQP4INzxx2ffwfz/5EnF6 3Lr1wymKTLgKiRipVjgEVs1lzePLQ63Xj4O3g4usFw4liJ6UEFCjucWF+9Gn2cZTNyzfcQ Tq3mejlUeadWhldTfInBRKSDLhfoDWp79+npjZ9VzzTXgNLH0mtJDL3AzkcLVNgLJ4M7pK G7i/3SJJmqOPGrguMik+NnmKgZatfo/SDv/XVSU9MIcGK4ovhmgohMT8JyIZWg== From: Luca Ceresoli To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , 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 v4 09/21] staging: media: tegra-video: move private struct declaration to C file Date: Mon, 30 Jan 2023 15:15:51 +0100 Message-Id: <20230130141603.323221-10-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130141603.323221-1-luca.ceresoli@bootlin.com> References: <20230130141603.323221-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?1756457466939592264?= X-GMAIL-MSGID: =?utf-8?q?1756457466939592264?= 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 Reviewed-by: Dmitry Osipenko --- Changed in v4: - Added review tags No changes in v3 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 c2724e1ecafb..4e48eaa0fbdc 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 *