[PATCH v2 10/17] dmaengine: ti: k3-udma: move inclusion of k3-udma-private.c to k3-udma-common.c
Sai Sree Kartheek Adivi
s-adivi at ti.com
Thu Jun 12 00:15:14 PDT 2025
Relocate the #include directive for k3-udma-private.c to
k3-udma-common.c so that the code can be shared between other UDMA
variants (like k3-udma-v2). This change improves modularity and prepares
for variant-specific implementations.
No functional changes intended.
Signed-off-by: Sai Sree Kartheek Adivi <s-adivi at ti.com>
---
drivers/dma/ti/k3-udma-common.c | 2 ++
drivers/dma/ti/k3-udma.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/ti/k3-udma-common.c b/drivers/dma/ti/k3-udma-common.c
index 9c541646e8e44..27abf389cc878 100644
--- a/drivers/dma/ti/k3-udma-common.c
+++ b/drivers/dma/ti/k3-udma-common.c
@@ -2489,3 +2489,5 @@ int setup_resources(struct udma_dev *ud)
return ch_count;
}
+/* Private interfaces to UDMA */
+#include "k3-udma-private.c"
diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c
index 2df0ebe8e7fac..be3dab9fbebba 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -2854,5 +2854,3 @@ module_platform_driver(udma_driver);
MODULE_DESCRIPTION("Texas Instruments UDMA support");
MODULE_LICENSE("GPL v2");
-/* Private interfaces to UDMA */
-#include "k3-udma-private.c"
--
2.34.1
More information about the linux-arm-kernel
mailing list