dmaengine: xilinx_dma: Move enum xdma_ip_type to driver file
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 5 Sep 2017 14:43:49 +0000 (16:43 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 17 Sep 2017 13:29:54 +0000 (18:59 +0530)
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 <lars@metafoo.de>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_dma.c
include/linux/dma/xilinx_dma.h

index 8722bcb..5eef133 100644 (file)
@@ -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,
index 3ae3000..34b98f2 100644 (file)
@@ -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);