Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4914918rwb; Tue, 20 Sep 2022 23:54:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4oOD4SUjg594ouJwpGFPtI9bcnc8kQJdBOERWamlr7ZJeNp6VqkFqYr9Ni/l6NeLLpeG0U X-Received: by 2002:a05:6402:268d:b0:451:d6e9:5572 with SMTP id w13-20020a056402268d00b00451d6e95572mr23255840edd.390.1663743285843; Tue, 20 Sep 2022 23:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663743285; cv=none; d=google.com; s=arc-20160816; b=dVM3bNhxfPkyxLK5s+xaGfdASDDroqAOwdMh6OHiXD/sMCx2OindK4YsHWTlZdSpXg vJ8IyZlXbG8A0vpiU8XHZinBE80ibTqZ/5SvClG/QKL4Xlrcub9YvytfLTf65x1SGaTP ys+6TMCo5hdYxf2tC1jgOMwmnjD3/gaaTLHy9LKKSFZ2wx4l0LEqY7/yujeebJ6lQopx 0twjLUne1GOc4oP/rinhJngzkXGN8sM8VVx8x5UdDYFH2r4eE2pvrF2YXAHqSIE8cQjE 3D0En6MRhGiCBQSSKabWI9vY83+2iFRAmZfzq6lg5MsjNZsRyDPPjixoe+Ws7aTm/YWz 3pkA== 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=kEJmLrPoMgX0Ufwum40DKuD+1qe+vQ7nWlr03KXuIqE=; b=OQOFTqVVyBlOMIy01TN8o05fTu4HMFIRCZXFqUOPILoq8HxQ8hrmzpVoUKVe0me9YL KMpluOAj+2fEpEQhsh5XZYYjRvZVsL7ted8G85y4l6drza3nZoL/+EvVW8oHBxBwVIlF f/ymrFiqaUuy56vGHx+0gFMjGz68l6n1IxOzZf4s+0Mf37T9Y5lxO57v2fZKsx6FgP0i nBn7XUPfTMsJNWdVdPpSkcL+Y75IWd5FSCseijWUaoArtOVZfqMa9AXPHX2kBd06IlVC ppqw8KetLUaxceR59mUnYRCEC1d5KY6hzyysXST7wjyaiS04RjGKGKfoKJ5LvpsuW4Pn PYqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=lA99Qoah; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a43-20020a509eae000000b00451547732e2si1814189edf.409.2022.09.20.23.54.20; Tue, 20 Sep 2022 23:54:45 -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=@linux.dev header.s=key1 header.b=lA99Qoah; 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=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbiIUGtm (ORCPT + 99 others); Wed, 21 Sep 2022 02:49:42 -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: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev 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_PASS, 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 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-edma-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, phys_addr_t cpu_addr) return region.start; } -static const struct dw_edma_core_ops dw_edma_pcie_core_ops = { +static const struct dw_edma_plat_ops dw_edma_pcie_plat_ops = { .irq_vector = dw_edma_pcie_irq_vector, .pci_address = dw_edma_pcie_address, }; @@ -225,7 +225,7 @@ static int dw_edma_pcie_probe(struct pci_dev *pdev, chip->mf = vsec_data.mf; chip->nr_irqs = nr_irqs; - chip->ops = &dw_edma_pcie_core_ops; + chip->ops = &dw_edma_pcie_plat_ops; chip->ll_wr_cnt = vsec_data.wr_ch_cnt; chip->ll_rd_cnt = 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; void __iomem *reg_base; -- 2.25.1