dmaengine: shdma: move shdma_chan and shdma_desc structs to private header
Subsystems (2)
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
@@ -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
Quoted 6 lines · On Tue, Oct 13, 2026 at 04:34:23PM -0400, [email protected] wrote:
Move struct
shdma_chanand structshdma_descfrom the public headerinclude/linux/shdma-base.hinto the driver-private headerdrivers/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_descriptorprivate.
This kind of changes I like!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 10 lines · On 10/13/26 1:34 PM, [email protected] wrote:
From: Frank Li <[email protected]>
Move struct
shdma_chanand structshdma_descfrom the public headerinclude/linux/shdma-base.hinto the driver-private headerdrivers/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_descriptorprivate.Signed-off-by Frank Li <[email protected]>
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
Quoted 8 lines · On Tue, 13 Oct 2026 16:34:23 -0400, [email protected] wrote:
Move struct
shdma_chanand structshdma_descfrom the public headerinclude/linux/shdma-base.hinto the driver-private headerdrivers/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_descriptorprivate.[...]
Applied, thanks!
[1/1] dmaengine: shdma: move shdma_chan and shdma_desc structs to private header
commit: 2e02fb103be058cf8b2fb24112a74a2715e090f0
Best regards,
Signature · 1 line
~Vinod