Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp9174011ybl; Fri, 17 Jan 2020 07:30:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyOA9d9/pHLiEOweVa8LES/cgyJwWvcP839CjIjKrJ605qHWR/f2J4Di94OvS1jU3m66k1K X-Received: by 2002:aca:d985:: with SMTP id q127mr3666436oig.132.1579275056457; Fri, 17 Jan 2020 07:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579275056; cv=none; d=google.com; s=arc-20160816; b=RZTYElaXBVubodcM4el0LK/S7CAAB3Mb+hSrYhfpQzhL22G97lOdxruNp2rkmXlhym xbszV80dJjloRh9nqn/Fc2Qy2TaE73uR/fM9NXh5/pKjTROcSp9i6Q5DnwYGpp93xdbf KNsTx16Wne0cxkgQredRnY1w7E25wx16CelcVAj2cVnK6d3o3tIS/CMMgLBy1svrP2Zw hTK2OW2SptFTVCqes65mf0AqXxhkKSi/k/iKacJIC+SjCYkggKCf7S5HIA6/TixlPK2j zcdCD7SHWz9N/kEm+odzgAxmiCTBDhkxmQQW3ZL41pMY/z7lYgPx8HDpcCCdfMwehY2O cfdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=VqoZ+pxTk6l8XrC2MHsSeErBUo76nHeMMfI0toWpD0Y=; b=fT0MayLlmhDsrYML9d3wrVb7SK0aFpS8hMz3nR+EgoulWYAgU8Tua2l6j93fW3FvQq lHmAJehcYhUoLfbXqz1nzTPXyvNvmu1beN7PnHR5tDzp3ptt1RNNClYdYx9kQbXUg604 CYgRGNAER4AUz5VE95kOFTHVMpKJsqFJg3/qIHWmh1+DqohN1OCo+53RL9aiZgx2Q2Rx CAiZqvcPjnlDhhyTe6OxHzBjI36YnbkBO9fYgVj8p80W+qZhcSRnGev+QrwdsxJRZ3wP IXvf/dA2CRcqxIgW3e6NqhhkhcdVOwP1CJIBqQMTRh9uD862gHsecy3ClpIXZDzJxp9x AYlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si13588287oic.140.2020.01.17.07.30.43; Fri, 17 Jan 2020 07:30:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729154AbgAQP3m (ORCPT + 99 others); Fri, 17 Jan 2020 10:29:42 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:35880 "EHLO michel.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728977AbgAQP3l (ORCPT ); Fri, 17 Jan 2020 10:29:41 -0500 Received: from ramsan ([84.195.182.253]) by michel.telenet-ops.be with bizsmtp id rTVe210065USYZQ06TVehv; Fri, 17 Jan 2020 16:29:38 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1isTZ4-0002FG-07; Fri, 17 Jan 2020 16:29:38 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1isTZ3-00087j-VF; Fri, 17 Jan 2020 16:29:37 +0100 From: Geert Uytterhoeven To: Vinod Koul , Dan Williams Cc: Lars-Peter Clausen , Matt Porter , Arnd Bergmann , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] dmaengine: Move dma_get_{,any_}slave_channel() to private dmaengine.h Date: Fri, 17 Jan 2020 16:29:33 +0100 Message-Id: <20200117152933.31175-4-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200117152933.31175-1-geert+renesas@glider.be> References: <20200117152933.31175-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions dma_get_slave_channel() and dma_get_any_slave_channel() are called from DMA engine drivers only. Hence move their declarations from the public header file to the private header file drivers/dma/dmaengine.h. Signed-off-by: Geert Uytterhoeven --- drivers/dma/dmaengine.h | 3 +++ drivers/dma/of-dma.c | 2 ++ include/linux/dmaengine.h | 2 -- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/dma/dmaengine.h b/drivers/dma/dmaengine.h index 501c0b063f852d9a..488c8a5cbd3b1a4a 100644 --- a/drivers/dma/dmaengine.h +++ b/drivers/dma/dmaengine.h @@ -171,4 +171,7 @@ dmaengine_desc_callback_valid(struct dmaengine_desc_callback *cb) return (cb->callback) ? true : false; } +struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); +struct dma_chan *dma_get_any_slave_channel(struct dma_device *device); + #endif diff --git a/drivers/dma/of-dma.c b/drivers/dma/of-dma.c index c2d779daa4b51ac8..b2c2b5e8093cf0d7 100644 --- a/drivers/dma/of-dma.c +++ b/drivers/dma/of-dma.c @@ -15,6 +15,8 @@ #include #include +#include "dmaengine.h" + static LIST_HEAD(of_dma_list); static DEFINE_MUTEX(of_dma_lock); diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 8318645ddc1289c9..2cd1d6d7ef0fcce5 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1411,8 +1411,6 @@ int dma_async_device_register(struct dma_device *device); int dmaenginem_async_device_register(struct dma_device *device); void dma_async_device_unregister(struct dma_device *device); void dma_run_dependencies(struct dma_async_tx_descriptor *tx); -struct dma_chan *dma_get_slave_channel(struct dma_chan *chan); -struct dma_chan *dma_get_any_slave_channel(struct dma_device *device); #define dma_request_channel(mask, x, y) \ __dma_request_channel(&(mask), x, y, NULL) -- 2.17.1