dma: Transfer dma_ops should use DMA address types
DMA operations should function on DMA addresses, not virtual addresses. Although these are usually the same in U-Boot, it is more correct to be explicit with our types here. Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
@@ -132,8 +132,8 @@ struct dma_ops {
|
||||
* @len: Length of the data to be copied (number of bytes).
|
||||
* @return zero on success, or -ve error code.
|
||||
*/
|
||||
int (*transfer)(struct udevice *dev, int direction, void *dst,
|
||||
void *src, size_t len);
|
||||
int (*transfer)(struct udevice *dev, int direction, dma_addr_t dst,
|
||||
dma_addr_t src, size_t len);
|
||||
};
|
||||
|
||||
#endif /* _DMA_UCLASS_H */
|
||||
|
Reference in New Issue
Block a user