From patchwork Thu Mar 7 15:16:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 159860 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp7554120jad; Thu, 7 Mar 2019 07:17:57 -0800 (PST) X-Google-Smtp-Source: APXvYqydlov7gIQaqS+EkHI4dGTpYy+Df/dswoG45PDGm1iGubJ7suwUNR/A3L2OXHB+FPDSSIJ0 X-Received: by 2002:a17:902:501:: with SMTP id 1mr13217242plf.72.1551971877581; Thu, 07 Mar 2019 07:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551971877; cv=none; d=google.com; s=arc-20160816; b=IQIjg8PCrlUg5gLsFzLfxwKoc0DcWWCErPPoBrwoMQ9S18b/8seQFzlliUt1eXBr2t Aggy8/87+JaI5cMusBDfJT4eEab7olQmHgvNqv1NtDtwEQp3jlv+w0jIEPjc5PUk54TG UtB0R6Zos5+U7l5pOMVcOvXIekLNk4dmEP5BvBQRu/poFspCOmTNaAiNoGJEV0DjDnIh jmkROzWOQfUMz8rFwoqea11U/SJECcmEjgyDV3kEFWpbZmtAEdWZ/mOl8hh6ClhNeT5f UjGr6i2Xj1MCM5+GE/vng8u62KWQk6nVOCFG1bJHxzgKVmIQ9ffLCdK7NzgrWZg4UhIo WZIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=btEMXislUN5l9BVPWY9vFFDjY9T4jOPnXqP4oLNNxps=; b=YPjXeuleGTCdB8VNf/yzkFlh9TmCYir+q4ir9lvTAKJwcUNa/9b7Ze3tmtQrEdhYkM S0QNRhPmreCVOvpmBa624bJKFGgDPrZJXknkbucCB6bR+bhxvxO9Ief/NpBD8KOen/Yj 8ZMMWALQAgqZiNmAoGhVBZvQ2F6mHSZj0B8wsWoq2e5j6kUpexQ5oVY/yKBM4fuqMG8p 7LYKNUOPTz9e/aNMQGcWbJqCuON1YIZDnCN2eByT56aexNkWGGFa0mKj661XpgRLuvzo MW9XAgOfyiBm1SPb6QBFx3ik5CTYHLhvV6Vj6SU3Fx/upAD4ZRswZ9z0fsZrFtmjmKCL lN2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-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 33si4650545plg.3.2019.03.07.07.17.57; Thu, 07 Mar 2019 07:17:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dmaengine-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 dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726375AbfCGPR5 (ORCPT + 3 others); Thu, 7 Mar 2019 10:17:57 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:60511 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfCGPR5 (ORCPT ); Thu, 7 Mar 2019 10:17:57 -0500 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MsrV2-1gmjPT1ofQ-00tC3t; Thu, 07 Mar 2019 16:17:43 +0100 From: Arnd Bergmann To: Mark Brown , Vinod Koul , Peter Ujfalusi , Arnd Bergmann , Janusz Krzysztofik Cc: dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, Dan Williams , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dmaengine: omap-dma: make omap_dma_filter_fn private Date: Thu, 7 Mar 2019 16:16:09 +0100 Message-Id: <20190307151646.1016966-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190307151646.1016966-1-arnd@arndb.de> References: <20190307151646.1016966-1-arnd@arndb.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:nBbEoXNunGoswjO+f6BrSVCztX4BCUBg4VQTJBpJ7EeSO7fsZXx kNFmU0I1zJ5hxjK4o1FHlEMQdpNk64xMCjDIMEF1fhfC0kMXml3sb49g7VP9bnB2nBv8d7U UYa3QGirbDMn6j/79M8MImQmWPNkjJTIpqQH7D3jx3KC64plLm6W3UhVnVISDubTDQ98vux SLHiWEhM+t+c3eeCAeURQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:y06xl6dcahY=:sqNdPImkh60jq2Io1jTQaE Q1uJA7aCyc7bndqCPSvIn9RPP07LjpSVx2ObrG6d7zAQuiN5/1V9pUlNBfapZfArzwnWV2sQr 1X2/LZyw9wFWN0VNJq6pG/uC4UUiUhwkY5rKbvxl+6+j0O0RxgtwtaM6OItdwAyxstTuow3dN qb2srxf21m60+9Bb9LiuNt9BPKDIVMo4xUl6ZG9OuSlzoVubTfh4SmHEFPGATmXOvFDWDCXvG XGVzAbVdgueHhYqaa83QNAoMRV8AxxgxXojuvkADnNuDRJOUlGJAyIRi9DaB413HHksXYZ/M5 ALXvG2onR1hGS0RKR5boxrJcat4NhSIQhtpcJKL+ijD/pFpb2/B7HRo88my0q2xz7IrOxdOEf Zsa2OYUNOqGB72wSqiwXnhX17vtYcfW/EUOF/3cQJ3JFru7bfsJHUZudkWrNocrekUX1obgGw 9khgtP8C+SUCtz2iANYotczknpJe5DEGJZYflYwT5zxQ1egL9q/NQE/r2lDQ3eWZUwmr5PXPR HqKuX+ni3ljwstdNJC4hAFODQ86tbGdsiGgNAuTt2iGseItoonaZ6N4+wVymR/WZYBDZwOHz4 v0LNC+GjfKqn4MRWAdAfYqDjL01wyqbU5U9lsoMgaNNrYGdm0jik9rcDyZBzkyGSTerzpGNos jZHYw00bWGzqlpefXYgXuXv45TJJmn8ASLWLNINQLhIvV67feM9Jv5AqxIgq+i1Co5an/LlTy 3qTfxq4NmFlW+4qYvcslPgxozNS24wqUIFtxWg== Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org With the audio driver no longer referring to this function, it can be made private to the dmaengine driver itself, and the header file removed. Signed-off-by: Arnd Bergmann --- drivers/dma/ti/omap-dma.c | 3 ++- include/linux/omap-dma.h | 2 -- include/linux/omap-dmaengine.h | 21 --------------------- 3 files changed, 2 insertions(+), 24 deletions(-) delete mode 100644 include/linux/omap-dmaengine.h -- 2.20.0 Acked-by: Peter Ujfalusi diff --git a/drivers/dma/ti/omap-dma.c b/drivers/dma/ti/omap-dma.c index a4a931ddf6f6..5bf635ba234d 100644 --- a/drivers/dma/ti/omap-dma.c +++ b/drivers/dma/ti/omap-dma.c @@ -205,6 +205,7 @@ static const unsigned es_bytes[] = { [CSDP_DATA_TYPE_32] = 4, }; +static bool omap_dma_filter_fn(struct dma_chan *chan, void *param); static struct of_dma_filter_info omap_dma_info = { .filter_fn = omap_dma_filter_fn, }; @@ -1640,7 +1641,7 @@ static struct platform_driver omap_dma_driver = { }, }; -bool omap_dma_filter_fn(struct dma_chan *chan, void *param) +static bool omap_dma_filter_fn(struct dma_chan *chan, void *param) { if (chan->device->dev->driver == &omap_dma_driver.driver) { struct omap_dmadev *od = to_omap_dma_dev(chan->device); diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index 840ce551e773..ba3cfbb52312 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h @@ -1,8 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LINUX_OMAP_DMA_H #define __LINUX_OMAP_DMA_H -#include - /* * Legacy OMAP DMA handling defines and functions * diff --git a/include/linux/omap-dmaengine.h b/include/linux/omap-dmaengine.h deleted file mode 100644 index 8e6906c72e90..000000000000 --- a/include/linux/omap-dmaengine.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * OMAP DMA Engine support - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - */ -#ifndef __LINUX_OMAP_DMAENGINE_H -#define __LINUX_OMAP_DMAENGINE_H - -struct dma_chan; - -#if defined(CONFIG_DMA_OMAP) || (defined(CONFIG_DMA_OMAP_MODULE) && defined(MODULE)) -bool omap_dma_filter_fn(struct dma_chan *, void *); -#else -static inline bool omap_dma_filter_fn(struct dma_chan *c, void *d) -{ - return false; -} -#endif -#endif /* __LINUX_OMAP_DMAENGINE_H */