diff options
| author | Frank Li <Frank.Li@nxp.com> | 2026-10-01 10:39:53 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-10-09 11:53:04 +0200 |
| commit | 511afae96d89847f753fcab6b3a597f0281be9d5 (patch) | |
| tree | ff8dcda56bc7da0360e037b7123135ecb4095bd0 /include | |
| parent | 562b6ed45db52934aaab9fbc856db3db79753155 (diff) | |
| download | linux-next-511afae96d89847f753fcab6b3a597f0281be9d5.tar.gz linux-next-511afae96d89847f753fcab6b3a597f0281be9d5.zip | |
dmaengine: move driver-private helpers out of include/linux/dmaengine.h
Move the following functions and declarations from the public header
include/linux/dmaengine.h into the driver-private header
drivers/dma/dmaengine.h, since they are only used by DMA engine drivers
and not by DMA engine consumers:
- dma_async_device_register()
- dmaenginem_async_device_register()
- dma_async_device_unregister()
- dma_async_device_channel_register()
- dma_async_device_channel_unregister()
- is_slave_direction()
- dmaengine_get_direction_text()
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20261001143955.2195063-1-Frank.Li@oss.nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/dmaengine.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index 1639f8a0a824..71cde09ff240 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h @@ -1009,12 +1009,6 @@ static inline int dmaengine_slave_config(struct dma_chan *chan, return -ENOSYS; } -static inline bool is_slave_direction(enum dma_transfer_direction direction) -{ - return (direction == DMA_MEM_TO_DEV) || (direction == DMA_DEV_TO_MEM) || - (direction == DMA_DEV_TO_DEV); -} - static inline struct dma_async_tx_descriptor * dmaengine_prep_config_single(struct dma_chan *chan, dma_addr_t buf, size_t len, enum dma_transfer_direction dir, @@ -2087,14 +2081,6 @@ dmaengine_desc_set_callback(struct dma_async_tx_descriptor *tx, /* --- DMA device --- */ -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); -int dma_async_device_channel_register(struct dma_device *device, - struct dma_chan *chan, - const char *name); -void dma_async_device_channel_unregister(struct dma_device *device, - struct dma_chan *chan); void dma_run_dependencies(struct dma_async_tx_descriptor *tx); #define dma_request_channel(mask, x, y) \ __dma_request_channel(&(mask), x, y, NULL) @@ -2125,23 +2111,6 @@ static inline struct dma_chan return dma_request_channel(mask, fn, fn_param); } -static inline char * -dmaengine_get_direction_text(enum dma_transfer_direction dir) -{ - switch (dir) { - case DMA_DEV_TO_MEM: - return "DEV_TO_MEM"; - case DMA_MEM_TO_DEV: - return "MEM_TO_DEV"; - case DMA_MEM_TO_MEM: - return "MEM_TO_MEM"; - case DMA_DEV_TO_DEV: - return "DEV_TO_DEV"; - default: - return "invalid"; - } -} - static inline struct device *dmaengine_chan_dev(struct dma_chan *chan) { return &chan->chan_dev->device; |
