Skip to content

Commit

Permalink
dmaengine: xilinx_dma: Move enum xdma_ip_type to driver file
Browse files Browse the repository at this point in the history
The enum xdma_ip_type is only used inside the Xilinx DMA driver and not
exported to any consumers (nor should it be). So move it from the global
header to driver file itself.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Michal Simek <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
larsclausen authored and Vinod Koul committed Sep 17, 2017
1 parent 2bd6bf0 commit f3ae7d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions drivers/dma/xilinx/xilinx_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,20 @@ struct xilinx_dma_chan {
u16 tdest;
};

/**
* enum xdma_ip_type: DMA IP type.
*
* XDMA_TYPE_AXIDMA: Axi dma ip.
* XDMA_TYPE_CDMA: Axi cdma ip.
* XDMA_TYPE_VDMA: Axi vdma ip.
*
*/
enum xdma_ip_type {
XDMA_TYPE_AXIDMA = 0,
XDMA_TYPE_CDMA,
XDMA_TYPE_VDMA,
};

struct xilinx_dma_config {
enum xdma_ip_type dmatype;
int (*clk_init)(struct platform_device *pdev, struct clk **axi_clk,
Expand Down
14 changes: 0 additions & 14 deletions include/linux/dma/xilinx_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,6 @@ struct xilinx_vdma_config {
int ext_fsync;
};

/**
* enum xdma_ip_type: DMA IP type.
*
* XDMA_TYPE_AXIDMA: Axi dma ip.
* XDMA_TYPE_CDMA: Axi cdma ip.
* XDMA_TYPE_VDMA: Axi vdma ip.
*
*/
enum xdma_ip_type {
XDMA_TYPE_AXIDMA = 0,
XDMA_TYPE_CDMA,
XDMA_TYPE_VDMA,
};

int xilinx_vdma_channel_set_config(struct dma_chan *dchan,
struct xilinx_vdma_config *cfg);

Expand Down

0 comments on commit f3ae7d9

Please sign in to comment.