From nobody Thu Apr 2 21:29:36 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74F9AECAAD8 for ; Wed, 21 Sep 2022 06:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230094AbiIUGto (ORCPT ); Wed, 21 Sep 2022 02:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiIUGtX (ORCPT ); Wed, 21 Sep 2022 02:49:23 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6569780F6A; Tue, 20 Sep 2022 23:49:22 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663742959; 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=kEJmLrPoMgX0Ufwum40DKuD+1qe+vQ7nWlr03KXuIqE=; b=lA99QoahA8cMq0GbqXG9SQwR3gKOeCQo6roHOKkyj1ULlHIagwO8HHMNHDvBfT3sukinei ruX/tXVvFj5xr5m9P/m80pS6ZwtBEtG9TXO85P++qk2mM3nrqxjXVMWvKfkBfobH9ekix/ 14kcyTDs7P8M/Ae9UQ7ULx2CooBA0yo= From: Cai Huoqing To: fancer.lancer@gmail.com Cc: caihuoqing , Gustavo Pimentel , Vinod Koul , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH 1/3] dmaengine: dw-edma: Rename dw_edma_core_ops structure to dw_edma_plat_ops Date: Wed, 21 Sep 2022 14:48:50 +0800 Message-Id: <20220921064859.10328-2-cai.huoqing@linux.dev> In-Reply-To: <20220921064859.10328-1-cai.huoqing@linux.dev> References: <20220921064859.10328-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: caihuoqing Rename dw_edma_core_ops structure to dw_edma_plat_ops, because the 'ops' is related to platform device Signed-off-by: caihuoqing --- drivers/dma/dw-edma/dw-edma-pcie.c | 4 ++-- include/linux/dma/edma.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/dma/dw-edma/dw-edma-pcie.c b/drivers/dma/dw-edma/dw-ed= ma-pcie.c index 3f9dadc73854..5604f3771866 100644 --- a/drivers/dma/dw-edma/dw-edma-pcie.c +++ b/drivers/dma/dw-edma/dw-edma-pcie.c @@ -109,7 +109,7 @@ static u64 dw_edma_pcie_address(struct device *dev, phy= s_addr_t cpu_addr) return region.start; } =20 -static const struct dw_edma_core_ops dw_edma_pcie_core_ops =3D { +static const struct dw_edma_plat_ops dw_edma_pcie_plat_ops =3D { .irq_vector =3D dw_edma_pcie_irq_vector, .pci_address =3D dw_edma_pcie_address, }; @@ -225,7 +225,7 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev, =20 chip->mf =3D vsec_data.mf; chip->nr_irqs =3D nr_irqs; - chip->ops =3D &dw_edma_pcie_core_ops; + chip->ops =3D &dw_edma_pcie_plat_ops; =20 chip->ll_wr_cnt =3D vsec_data.wr_ch_cnt; chip->ll_rd_cnt =3D vsec_data.rd_ch_cnt; diff --git a/include/linux/dma/edma.h b/include/linux/dma/edma.h index 9d44da4aa59d..642dd325259b 100644 --- a/include/linux/dma/edma.h +++ b/include/linux/dma/edma.h @@ -37,7 +37,7 @@ struct dw_edma_region { * iATU windows. That will be done by the controller * automatically. */ -struct dw_edma_core_ops { +struct dw_edma_plat_ops { int (*irq_vector)(struct device *dev, unsigned int nr); u64 (*pci_address)(struct device *dev, phys_addr_t cpu_addr); }; @@ -77,7 +77,7 @@ enum dw_edma_chip_flags { struct dw_edma_chip { struct device *dev; int nr_irqs; - const struct dw_edma_core_ops *ops; + const struct dw_edma_plat_ops *ops; u32 flags; =20 void __iomem *reg_base; --=20 2.25.1