diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-01-07 06:07:38 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-01-07 07:27:13 -0500 |
commit | 69da8be90d5e85e60b5377c47384154b9dabf592 (patch) | |
tree | b83e230892a29f80ff1619823a5f1275375b199c /include/linux/dma | |
parent | 078165779608873e7b6eae1316a39c73af9f3edc (diff) |
dmaengine: dw: Split DW and iDMA 32-bit operations
Here is a kinda big refactoring that should have been done
in the first place, when Intel iDMA 32-bit support appeared.
It splits operations which are different to Synopsys DesignWare and
Intel iDMA 32-bit controllers.
No functional change intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/dma')
-rw-r--r-- | include/linux/dma/dw.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/dma/dw.h b/include/linux/dma/dw.h index e166cac8e870..d643d331c20e 100644 --- a/include/linux/dma/dw.h +++ b/include/linux/dma/dw.h | |||
@@ -45,9 +45,13 @@ struct dw_dma_chip { | |||
45 | #if IS_ENABLED(CONFIG_DW_DMAC_CORE) | 45 | #if IS_ENABLED(CONFIG_DW_DMAC_CORE) |
46 | int dw_dma_probe(struct dw_dma_chip *chip); | 46 | int dw_dma_probe(struct dw_dma_chip *chip); |
47 | int dw_dma_remove(struct dw_dma_chip *chip); | 47 | int dw_dma_remove(struct dw_dma_chip *chip); |
48 | int idma32_dma_probe(struct dw_dma_chip *chip); | ||
49 | int idma32_dma_remove(struct dw_dma_chip *chip); | ||
48 | #else | 50 | #else |
49 | static inline int dw_dma_probe(struct dw_dma_chip *chip) { return -ENODEV; } | 51 | static inline int dw_dma_probe(struct dw_dma_chip *chip) { return -ENODEV; } |
50 | static inline int dw_dma_remove(struct dw_dma_chip *chip) { return 0; } | 52 | static inline int dw_dma_remove(struct dw_dma_chip *chip) { return 0; } |
53 | static inline int idma32_dma_probe(struct dw_dma_chip *chip) { return -ENODEV; } | ||
54 | static inline int idma32_dma_remove(struct dw_dma_chip *chip) { return 0; } | ||
51 | #endif /* CONFIG_DW_DMAC_CORE */ | 55 | #endif /* CONFIG_DW_DMAC_CORE */ |
52 | 56 | ||
53 | #endif /* _DMA_DW_H */ | 57 | #endif /* _DMA_DW_H */ |