From patchwork Tue Nov 16 14:38:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Pietrasiewicz X-Patchwork-Id: 12692779 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69612C433EF for ; Tue, 16 Nov 2021 14:45:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33AD4617E5 for ; Tue, 16 Nov 2021 14:45:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 33AD4617E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=B98lMeDRpPgqYPch0DQZbz7ltCHqBDWEcXpitpZiIVs=; b=jBZ3+MAOiAa596 sjkPb1srkK1JEl+XDc5zG9+BBP4CeHeRV7r4P83RFtBhrGXXr4HQtmL2mWyw8ytX9Evkm1bx63pEX hY/d6jBAnId0rMWLCYkzSASdasUYFDSDFf75HULPabpRXpIuLLrHVtLqIdaG6rrHSZRCNbvDp5i2t NtRbEwHAf+cVP+qvAYZheqSar0BJ6cHdxJHEx0LnL11u3KTRzIMc6BIjFvz2Yx47PdhlhjG1Iu2sw MrR+VGeIWpio3Jl/yO8xdxH/mTv13g/xiq9P412PHPyV2nsKT0Z9se6JowvY98WjcMZ37RcaaWjk9 6xKJPWZrKDqMs/MW7kXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmzgF-001xUx-My; Tue, 16 Nov 2021 14:43:28 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mmzbv-001v5e-Oy; Tue, 16 Nov 2021 14:39:13 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 55D391F45838 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=collabora.com; s=mail; t=1637073538; bh=TANLJm9xsmsL2ZeuB9DdC+nljIRim54r5T26d7g1jdw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VNrpmKUxhP9TlcL1CXHAl+ulau05W0x6oOsQyGFZfm/iRxIU4s0KeKBcBZDA6we22 yCZg9P3qWXT9hpGB5+LVkSeyqOobsGvyaxZQfgpL8D93dnLtn0WtEf/m3TMqY/Gh6i C1kJwBUIoDvnUFVI4eeUar2DcM8M1d2agsDRdmIKlxHhEBW2DRTXJgm8e+c/IzcJZT 0PbU9lNBGkwaHBIFthNI9hk8TT+2ksdPAQBdumbHDN91itJDxdW8ySk88Nywt3qZ9o Dk6+tJ4KTUXX20oOjiUVyWgeCni5/AD/9Guza716tWy6/WdffVVxKg9FmL5NsRDsjb pxgRhh9sW5i6A== From: Andrzej Pietrasiewicz To: linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev Cc: Andrzej Pietrasiewicz , Benjamin Gaignard , Boris Brezillon , Ezequiel Garcia , Fabio Estevam , Greg Kroah-Hartman , Hans Verkuil , Heiko Stuebner , Jernej Skrabec , Mauro Carvalho Chehab , Nicolas Dufresne , NXP Linux Team , Pengutronix Kernel Team , Philipp Zabel , Sascha Hauer , Shawn Guo , kernel@collabora.com Subject: [PATCH v8 11/12] media: hantro: Staticize a struct in postprocessor code Date: Tue, 16 Nov 2021 15:38:41 +0100 Message-Id: <20211116143842.75896-12-andrzej.p@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211116143842.75896-1-andrzej.p@collabora.com> References: <20211116143842.75896-1-andrzej.p@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211116_063900_013939_A3B7ED83 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The struct is not used outside this file, so it can be static. Signed-off-by: Andrzej Pietrasiewicz Reviewed-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_postproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/hantro/hantro_postproc.c b/drivers/staging/media/hantro/hantro_postproc.c index 4549aec08feb..89de43021779 100644 --- a/drivers/staging/media/hantro/hantro_postproc.c +++ b/drivers/staging/media/hantro/hantro_postproc.c @@ -33,7 +33,7 @@ #define VPU_PP_OUT_RGB 0x0 #define VPU_PP_OUT_YUYV 0x3 -const struct hantro_postproc_regs hantro_g1_postproc_regs = { +static const struct hantro_postproc_regs hantro_g1_postproc_regs = { .pipeline_en = {G1_REG_PP_INTERRUPT, 1, 0x1}, .max_burst = {G1_REG_PP_DEV_CONFIG, 0, 0x1f}, .clk_gate = {G1_REG_PP_DEV_CONFIG, 1, 0x1},