From patchwork Thu Dec 29 13:31:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 37394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2402937wrt; Thu, 29 Dec 2022 05:34:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXtw7cyxCFXFpbqHNf3c/qUqLNhdmUbUdHxen3Jy1VyAEhuopFrkEcihqUJkBX8HTSgbTfV+ X-Received: by 2002:a05:6a20:d2c6:b0:af:7233:5bfc with SMTP id ir6-20020a056a20d2c600b000af72335bfcmr53138882pzb.8.1672320841505; Thu, 29 Dec 2022 05:34:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672320841; cv=none; d=google.com; s=arc-20160816; b=vaqF2m6iIYV4nP2k/KqouGvGcOWG6xSapIf/KBKndrdkK+pjW4xXGs0cFgK6Vk12pL a/7khJvFaHJSd67PIBsTObbYROxVEOllqWdPNxTVzA8VauZTKyjtK7bnUhV5xRRhL808 ibwOeTnnvb9toGIuFUZCXC5oS93XkBWk6jKUN+YS+mnhPkqNdG1u8ShubL+uIHCaCfJF n3AH5u3v01tEc7IQDcUZhmOU4I6KSYbsjG6MX8Yenip4B8DBWAHaNy2XwJkjOoDk0HcK zjoUH+Mfv1Tpik9PiZ9d1c9hSVNDIRifG3WvEcN061b5tImrg27WYGykTL1ip9IOanTE iRQA== 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=Rxd5etkxm/QsMIFmem4kDzhHvir4o1D7dvjd5AYgtdE=; b=x4X3qL9XzlNfasllaLnjYA6jLQJDRW3y4JPne8p2yrNEVu3A6MbwS5j1wW51zlD849 tDL9dmYLpfa/x6YdnXLxRJaIrEtnBSMYZ/FzXdF/VPHK6PLUa0CW9Hr7BhFuJ59OMrhg 7YAhvCMz1jRB3xFOuJCKNxKQdHPCqnGKi7CKEJzia5M8Rv+fLykk5u6WSUpT/0qiidyy KFCf3T42BMu2+OHTuZdFf854VaQow5wZcnGzrF50YSNgeD2T6wC/V0MJSpqrhZ6rTQ6+ kvSgC+gMuY2f2/ZRk133/XyiL7ZZ8ifnuHa1R+Agkst94ReIVPsRFJcpFphWFwivPI0I 5jcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="m6Qu5Vp/"; 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 x30-20020a63171e000000b0047860cda19dsi17656391pgl.859.2022.12.29.05.33.47; Thu, 29 Dec 2022 05:34:01 -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="m6Qu5Vp/"; 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 S233514AbiL2NdT (ORCPT + 99 others); Thu, 29 Dec 2022 08:33:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbiL2Ncn (ORCPT ); Thu, 29 Dec 2022 08:32:43 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E1D41116F; Thu, 29 Dec 2022 05:32:41 -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 B7FACFF807; Thu, 29 Dec 2022 13:32:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1672320760; 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=Rxd5etkxm/QsMIFmem4kDzhHvir4o1D7dvjd5AYgtdE=; b=m6Qu5Vp/bAEdp58VnsZnJ6xKgmv8R10f3xFAf2DzU4DYXFUbuY8DsOMW43JIwedyRqW/OB iX8iZ9Njch9B2//I+NtNdgzkiG6g1mKMDp6izNTaJB8x+X/lRZubmblzzeNqxU66auFQqe K4t4hSjcenC/RqurzR5VfX/T1B59tqrXlIGfgvuPbWtbrZ+1Ut6I8ST3BSKoSZ6LWv2/6H pWv80yHJryuDoy+gIpzadfdUX2Rx/NjmOrzodelcaH3jzbtX4TuujT6bnWzC50Qndus1ZD EEVoesPF+fQPfJW8xm4bHdU4lTRPicziSWgds6mSaAfeSMU9k2c7tvh7SXBwsQ== From: Luca Ceresoli To: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , Hans Verkuil Cc: 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 v3 09/21] staging: media: tegra-video: move private struct declaration to C file Date: Thu, 29 Dec 2022 14:31:53 +0100 Message-Id: <20221229133205.981397-10-luca.ceresoli@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221229133205.981397-1-luca.ceresoli@bootlin.com> References: <20221229133205.981397-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 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?1753555498754197777?= X-GMAIL-MSGID: =?utf-8?q?1753555498754197777?= 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 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 *