Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: xilinx_dma: Move enum xdma_ip_type to driver file

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>

authored by

Lars-Peter Clausen and committed by
Vinod Koul
f3ae7d91 2bd6bf03

+14 -14
+14
drivers/dma/xilinx/xilinx_dma.c
··· 366 366 u16 tdest; 367 367 }; 368 368 369 + /** 370 + * enum xdma_ip_type: DMA IP type. 371 + * 372 + * XDMA_TYPE_AXIDMA: Axi dma ip. 373 + * XDMA_TYPE_CDMA: Axi cdma ip. 374 + * XDMA_TYPE_VDMA: Axi vdma ip. 375 + * 376 + */ 377 + enum xdma_ip_type { 378 + XDMA_TYPE_AXIDMA = 0, 379 + XDMA_TYPE_CDMA, 380 + XDMA_TYPE_VDMA, 381 + }; 382 + 369 383 struct xilinx_dma_config { 370 384 enum xdma_ip_type dmatype; 371 385 int (*clk_init)(struct platform_device *pdev, struct clk **axi_clk,
-14
include/linux/dma/xilinx_dma.h
··· 41 41 int ext_fsync; 42 42 }; 43 43 44 - /** 45 - * enum xdma_ip_type: DMA IP type. 46 - * 47 - * XDMA_TYPE_AXIDMA: Axi dma ip. 48 - * XDMA_TYPE_CDMA: Axi cdma ip. 49 - * XDMA_TYPE_VDMA: Axi vdma ip. 50 - * 51 - */ 52 - enum xdma_ip_type { 53 - XDMA_TYPE_AXIDMA = 0, 54 - XDMA_TYPE_CDMA, 55 - XDMA_TYPE_VDMA, 56 - }; 57 - 58 44 int xilinx_vdma_channel_set_config(struct dma_chan *dchan, 59 45 struct xilinx_vdma_config *cfg); 60 46