From patchwork Tue Apr 30 07:10:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 13648393 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 5FBBAC4345F for ; Tue, 30 Apr 2024 07:11:31 +0000 (UTC) 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: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:In-Reply-To:References: List-Owner; bh=9X05kmnS2Kvcg0/qAlXY2UGAcdWo1+5NNfqRMoWWhoY=; b=x2+HvfDEiau25o iKTIotxDolBR6Qji9OFAy8C5xdDtS6SK7V01eW5QtxzsBHQml8tS3Ba0ETxSFA+pWboLDM9t8YjbQ utg8gd8IC2paRmxfIsNVmFMOrt+WEiqUtHoq1Z1/fIP/Sl12IFJX5Mlko81xiYrHYbBTabFda+Tp2 gKtzF/htbcWVlhsIKN0psWze5+xt6rlhu2hsOVHpdyzs8kNIG2/I5+cLb4W+xIiP4iQ8kvSp1c/Js w8YUpEuqU2gIC8+/sUaRJpWUtXJk/PaZ/9B80LfN4rY+rMpUWqQhk1w8WWzSWkZToTQATViV9bAPb 43DHVyPW1KEL2KdKWL3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1hdy-00000005O7F-3e5q; Tue, 30 Apr 2024 07:11:14 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s1hdv-00000005O6L-0fK5 for linux-arm-kernel@lists.infradead.org; Tue, 30 Apr 2024 07:11:12 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id EFF3ACE04F0; Tue, 30 Apr 2024 07:11:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41196C2BBFC; Tue, 30 Apr 2024 07:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714461066; bh=MgqqXwmWXlkipmBRIZBSIUTe/3u2BXxchsuk8HMH5Kw=; h=From:To:Cc:Subject:Date:From; b=GZk8fJQtLjDKjMIiWQv6LQaS+sgh75EqSA0N0mTsapqr4OeifkOxICH/knfALhKlD x+xEiLynE/pgH5MezktdWWUDsasdHm4RJbyNWyXTegB7AlnCfna+XBP5NOyk/6oLbf ZPOW5GLVD5ORxVonjF8hbfGMUBqnEPA5TiWk7n04X2aG3PnKfqOUHhIiXgEnbK+FzB ZVxtQIVqEfTmOhMEssQiNP1gRi9SptRE9LgT2t7G9qgoktW3gKuJwBFPxDXEZ88wSq +EFpUKR/bvFMAvsuzf15ReQkSR7HeAgTPDhmSenzd9JzkQH87pbxP3l5D8L3aKQUvp 3Pz1FzQ+AKUAg== From: Niklas Cassel To: Vignesh Raghavendra , Siddharth Vadapalli , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas Cc: Niklas Cassel , linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] PCI: dra7xx: Fix cpu_addr_fixup parameter name Date: Tue, 30 Apr 2024 09:10:55 +0200 Message-ID: <20240430071054.248008-3-cassel@kernel.org> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1138; i=cassel@kernel.org; h=from:subject; bh=MgqqXwmWXlkipmBRIZBSIUTe/3u2BXxchsuk8HMH5Kw=; b=owGbwMvMwCV2MsVw8cxjvkWMp9WSGNIMZtb5HP742MFmz9NID9eXPw+U7ro/3clenYn5H+/+5 l0HhBkkOkpZGMS4GGTFFFl8f7jsL+52n3Jc8Y4NzBxWJpAhDFycAjCRr9sZ/pedT1mzccmk9VFa 0kkul8508C41FPziUDorYcqyyQ/U6z4y/LPozGKRFJ2nbuhyz+lYkK65aoPPy61rF/TfjLq7XJ/ 1DxsA X-Developer-Key: i=cassel@kernel.org; a=openpgp; fpr=5ADE635C0E631CBBD5BE065A352FE6582ED9B5DA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240430_001111_420725_66E2DB93 X-CRM114-Status: GOOD ( 11.00 ) 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 function pointer declaration for the cpu_addr_fixup() callback uses "cpu_addr" as parameter name. Likewise, the argument that is supplied to the function pointer when the function is actually called is "cpu_addr". Rename the cpu_addr_fixup parameter name to match reality. Signed-off-by: Niklas Cassel --- drivers/pci/controller/dwc/pci-dra7xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index d2d17d37d3e0..2b818346bb37 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c @@ -113,9 +113,9 @@ static inline void dra7xx_pcie_writel(struct dra7xx_pcie *pcie, u32 offset, writel(value, pcie->base + offset); } -static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 pci_addr) +static u64 dra7xx_pcie_cpu_addr_fixup(struct dw_pcie *pci, u64 cpu_addr) { - return pci_addr & DRA7XX_CPU_TO_BUS_ADDR; + return cpu_addr & DRA7XX_CPU_TO_BUS_ADDR; } static int dra7xx_pcie_link_up(struct dw_pcie *pci)