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
2626 * @max_mm_channels: Maximum number of MM DMA channels in each direction
2727 * @device_map: DMA slave map
2828 * @irq_index: The index of first IRQ
29+ * @dma_dev: The device pointer for dma operations
2930 */
3031 struct qdma_platdata {
3132 u32 max_mm_channels;
3233 u32 irq_index;
3334 struct dma_slave_map *device_map;
35+ struct device *dma_dev;
3436 };
3537
3638 #endif /* _PLATDATA_AMD_QDMA_H */