From patchwork Tue Apr 18 08:00:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 84659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2670038vqo; Tue, 18 Apr 2023 01:15:47 -0700 (PDT) X-Google-Smtp-Source: AKy350Ze4vvjorxy4YL+ttcTaoJxBtrfGgVYNblNYEjODytves7BM0WybDhBExytUxO1IukN1Lu2 X-Received: by 2002:a17:903:138f:b0:1a6:eab0:98c2 with SMTP id jx15-20020a170903138f00b001a6eab098c2mr1333849plb.21.1681805747509; Tue, 18 Apr 2023 01:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681805747; cv=none; d=google.com; s=arc-20160816; b=Xd3xgwX0wgwXcmXtNs6iTY+BJYBZE8ONLHQtTZVetCrlVhAPWPpk2rzN6dnMS8PHRo SrOUD42TPBADN8gGlfI13DLJMB3IX5mi+K7Wa2zT1YVNmPq/gamE3xW+2UDJ+J+CI9Ut yLAStQ6WIjbxiGj6hygk/XoHhGoGaIW1bHAJONu+KewTWZIE8p6Lzs7VT1XTlWkXp9fw o9miRYTf9JHDxi6+ktMTiqPI4yy1U//0AItP2UlrBckG5t0NerBmQw5Zw5q24BKnaTrm 92iPi/gz+7OuYRsfbhMR5r1Xaiit2BHLgy9gCMziXsLiIhdVxxPbpGNcg7WB0F5MrOkg 5SLg== 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=ce1Cq6IBrZ258McFK0fXzLWtRecvX/0hdobwe0m2ndY=; b=B9OKZJeu5ekh3m2bD2aGRfcH68WUFPklIO/v/nPKahuofO7G65rob+yOEYbJvXvQQF 2gG46paHCu2CmWmi0H7d0BT/TaeMQpF642GwQDIlfDXclnXfM603kav+FkA8lumle1VL Y+iQ4wThaUSvHQY2taCkLYKGK24X3z2JqE9VdBC7ngV9QUnQuseb0J+axeDzVxPbKeQZ WCbF3qi9qBUJ8n4eEmk71/JPD2dB5idZqOEjtjLF/HFwnbakWt6fDf1laaGSutVtHgUj 4f5trO1/0SfwKumuAnIVoDRuxmEUk6Z+CTcv78vgF/Ud9HKcdqx45UfUCMJwrZbFFNfh lFrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=GRYjYaFH; 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 k8-20020a170902c40800b001a654886149si15295878plk.96.2023.04.18.01.15.35; Tue, 18 Apr 2023 01:15:47 -0700 (PDT) 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=GRYjYaFH; 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 S231526AbjDRICg (ORCPT + 99 others); Tue, 18 Apr 2023 04:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbjDRICN (ORCPT ); Tue, 18 Apr 2023 04:02:13 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54BF868B; Tue, 18 Apr 2023 01:01:35 -0700 (PDT) Received: from booty.fritz.box (unknown [77.244.183.192]) (Authenticated sender: luca.ceresoli@bootlin.com) by mail.gandi.net (Postfix) with ESMTPA id 89064240011; Tue, 18 Apr 2023 08:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1681804894; 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=ce1Cq6IBrZ258McFK0fXzLWtRecvX/0hdobwe0m2ndY=; b=GRYjYaFHbz5AcIYbRWM4ZvWspoFCeAwfoWazMbWqkK6ZdUBpyufPTWiYHR7EqEyMCCQBII ZXeAD4bwi7Ck8ehh22K1AmaOoEe7W1EEd4i48bxjyvEFT+9ZUvPyggMkoER4QfZ60Khlpk RWlHON3DCati5VF83pVAjidF2GDFx5w+48+B1NvoFEEWRjZfCMgVbmySyXnRzPvum5pxIN EAQldYjM7aaYPt3hc1gqRU8QszMtVnel7ouk5uM7X8Re1uEf/zMkk87Uo3ADoGF08rNdvd H6et9e6zyYRqZVFBkGsfjEFN51Nfyi6lgo1K86QhqjZqNcsbjq58TrYe/9unrA== From: Luca Ceresoli To: linux-tegra@vger.kernel.org Cc: Luca Ceresoli , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Laurent Pinchart , Hans Verkuil , Thomas Petazzoni , Paul Kocialkowski , Richard Leitner , Dmitry Osipenko Subject: [PATCH v6 08/20] staging: media: tegra-video: move private struct declaration to C file Date: Tue, 18 Apr 2023 10:00:42 +0200 Message-Id: <20230418080054.452955-9-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230418080054.452955-1-luca.ceresoli@bootlin.com> References: <20230418080054.452955-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,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1763501143677172762?= X-GMAIL-MSGID: =?utf-8?q?1763501143677172762?= 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 --- No changes in v6 No changes in v5 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 ce4ff4cbf587..db98d06351b4 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -32,6 +32,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 5396bf53ab75..9959cbe02ca0 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 *