History

dmaengine: amd: qdma: Remove using the private get and set dma_ops APIs

The get_dma_ops and set_dma_ops APIs were never for driver to use. Remove these calls from QDMA driver. Instead, pass the DMA device pointer from the qdma_platdata structure.

Lizhi Hou committed 2 years ago

Commit dcbef071 parent 8d55e8a2 files · +14 −16Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/amd_qdma.h+2−0
@@ -26,11 +26,13 @@ struct dma_slave_map; · 25 unmodified lines
26 * @max_mm_channels: Maximum number of MM DMA channels in each direction26 * @max_mm_channels: Maximum number of MM DMA channels in each direction
27 * @device_map: DMA slave map27 * @device_map: DMA slave map
28 * @irq_index: The index of first IRQ28 * @irq_index: The index of first IRQ
29 * @dma_dev: The device pointer for dma operations
29 */30 */
30struct qdma_platdata {31struct qdma_platdata {
31 u32 max_mm_channels;32 u32 max_mm_channels;
32 u32 irq_index;33 u32 irq_index;
33 struct dma_slave_map *device_map;34 struct dma_slave_map *device_map;
35 struct device *dma_dev;
34};36};
35 37
36#endif /* _PLATDATA_AMD_QDMA_H */38#endif /* _PLATDATA_AMD_QDMA_H */