riscv: dma: rename dma_ops to dma_map_ops.
PATCH 1/1 riscv: dma: rename dma_ops to dma_map_ops.
From: Chali Anis <[email protected]>
rename dma_ops to dma_map_ops for more consistence.
Signed-off-by Chali Anis <[email protected]>
--- arch/riscv/cpu/dma.c | 6 +++--- arch/riscv/include/asm/dma.h | 4 ++-- drivers/soc/starfive/jh7100_dma.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
arch/riscv/cpu/dma.c +3 -3
@@ -30,14 +30,14 @@ static void __dma_free_coherent(struct device *dev,free (vaddr); } -static const struct dma_ops coherent_dma_ops = { +static const struct dma_map_ops coherent_dma_ops = { .alloc_coherent = __dma_alloc_coherent, .free_coherent = __dma_free_coherent, .flush_range = __dma_flush_range, .inv_range = __dma_flush_range, }; -static const struct dma_ops *dma_ops = &coherent_dma_ops; +static const struct dma_map_ops *dma_ops = &coherent_dma_ops;void *dma_alloc_coherent (struct device *dev,size_t size,dma_addr_t *dma_handle)
@@ -51,7 +51,7 @@ void dma_free_coherent(struct device *dev, dma_ops->free_coherent (dev, vaddr, dma_handle, size); } -void dma_set_ops (const struct dma_ops *ops) +void dma_set_ops (const struct dma_map_ops *ops) { dma_ops = ops; }
arch/riscv/include/asm/dma.h +2 -2
@@ -6,7 +6,7 @@struct device ; -struct dma_ops { +struct dma_map_ops {void *(*alloc_coherent)(struct device *dev,size_t size,dma_addr_t *dma_handle);void (*free_coherent)(struct device *dev,void *vaddr,dma_addr_t dma_handle,size_t size);
@@ -15,7 +15,7 @@ struct dma_ops { };/* Override for SoCs with cache-incoherent DMA masters */ -void dma_set_ops (const struct dma_ops *ops); +void dma_set_ops (const struct dma_map_ops *ops);#define DMA_ALIGNMENT 64
drivers/soc/starfive/jh7100_dma.c +1 -1
@@ -37,7 +37,7 @@ static inline void jh7100_free_coherent(struct device *dev,free ((void *)dma_handle); } -static const struct dma_ops jh7100_dma_ops = { +static const struct dma_map_ops jh7100_dma_ops = { .alloc_coherent = jh7100_alloc_coherent, .free_coherent = jh7100_free_coherent, .flush_range = sifive_l2_flush64_range,
Signature · 1 line
2.34.1
Sascha Hauer
AppliedQuoted 3 lines · On Wed, 17 Sep 2025 02:19:04 -0400, [email protected] wrote:
rename
dma_opstodma_map_opsfor more consistence.
Applied, thanks!
[1/1] riscv: dma: rename dma_ops to dma_map_ops.
https://git.pengutronix.de/cgit/barebox/commit/?id=cbae7ba52c34 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>