Skip to content

Commit c3c431d

Browse files
geertuvinodkoul
authored andcommitted
dmaengine: Move dma_get_{,any_}slave_channel() to private dmaengine.h
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 <linux/dmaengine.h> to the private header file drivers/dma/dmaengine.h. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 71ca5b7 commit c3c431d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

drivers/dma/dmaengine.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,7 @@ dmaengine_desc_callback_valid(struct dmaengine_desc_callback *cb)
179179
return (cb->callback) ? true : false;
180180
}
181181

182+
struct dma_chan *dma_get_slave_channel(struct dma_chan *chan);
183+
struct dma_chan *dma_get_any_slave_channel(struct dma_device *device);
184+
182185
#endif

drivers/dma/of-dma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <linux/of.h>
1616
#include <linux/of_dma.h>
1717

18+
#include "dmaengine.h"
19+
1820
static LIST_HEAD(of_dma_list);
1921
static DEFINE_MUTEX(of_dma_lock);
2022

include/linux/dmaengine.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,6 @@ int dma_async_device_register(struct dma_device *device);
15221522
int dmaenginem_async_device_register(struct dma_device *device);
15231523
void dma_async_device_unregister(struct dma_device *device);
15241524
void dma_run_dependencies(struct dma_async_tx_descriptor *tx);
1525-
struct dma_chan *dma_get_slave_channel(struct dma_chan *chan);
1526-
struct dma_chan *dma_get_any_slave_channel(struct dma_device *device);
15271525
#define dma_request_channel(mask, x, y) \
15281526
__dma_request_channel(&(mask), x, y, NULL)
15291527

0 commit comments

Comments
 (0)