Skip to contentSkip to conversation

dmaengine: shdma: move shdma_chan and shdma_desc structs to private header

PATCH Applied [email protected] 4 participants 4 messages Oct 13 – Nov 20

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: shdma: move shdma_chan and shdma_desc structs to private header

From: Frank Li <[email protected]>

Move struct shdma_chan and struct shdma_desc from the public header include/linux/shdma-base.h into the driver-private header drivers/dma/sh/shdma.h. These structs are only used internally by the shdma driver and do not need to be exposed to external users.

Prepare to make struct dma_async_tx_descriptor private.

---
 drivers/dma/sh/shdma-base.c |  2 +-
 drivers/dma/sh/shdma.h      | 80 +++++++++++++++++++++++++++++++++++++
 include/linux/shdma-base.h  | 80 +------------------------------------
 3 files changed, 83 insertions(+), 79 deletions(-)
drivers/dma/sh/shdma-base.c +1 -1
index 89a78e685b1d1..ef704a6aed233 100644
@@ -20,7 +20,7 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 
-#include "../dmaengine.h"
+#include "shdma.h"
 
 /* DMA descriptor control */
 enum shdma_desc_status {
drivers/dma/sh/shdma.h +80 -0

103 lines not on this page · raw message

include/linux/shdma-base.h +2 -78

87 lines not on this page · raw message

Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Tue, Oct 13, 2026 at 04:34:23PM -0400, [email protected] wrote:

Move struct shdma_chan and struct shdma_desc from the public header include/linux/shdma-base.h into the driver-private header drivers/dma/sh/shdma.h. These structs are only used internally by the shdma driver and do not need to be exposed to external users.

Prepare to make struct dma_async_tx_descriptor private.

This kind of changes I like!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
Acked-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 10 lines · On 10/13/26 1:34 PM, [email protected] wrote:

From: Frank Li <[email protected]>

Move struct shdma_chan and struct shdma_desc from the public header include/linux/shdma-base.h into the driver-private header drivers/dma/sh/shdma.h. These structs are only used internally by the shdma driver and do not need to be exposed to external users.

Prepare to make struct dma_async_tx_descriptor private.

Thanks.

Quoted 5 lines
---
 drivers/dma/sh/shdma-base.c |  2 +-
 drivers/dma/sh/shdma.h      | 80 +++++++++++++++++++++++++++++++++++++
 include/linux/shdma-base.h  | 80 +------------------------------------
 3 files changed, 83 insertions(+), 79 deletions(-)
Signature · 1 line
~Randy
maintainer Applied
#3 lore raw
In reply to [email protected]
Quoted 8 lines · On Tue, 13 Oct 2026 16:34:23 -0400, [email protected] wrote:

Move struct shdma_chan and struct shdma_desc from the public header include/linux/shdma-base.h into the driver-private header drivers/dma/sh/shdma.h. These structs are only used internally by the shdma driver and do not need to be exposed to external users.

Prepare to make struct dma_async_tx_descriptor private.

[...]

Applied, thanks!

[1/1] dmaengine: shdma: move shdma_chan and shdma_desc structs to private header

      commit: 2e02fb103be058cf8b2fb24112a74a2715e090f0

Best regards,

Signature · 1 line
~Vinod