[PATCH v13 11/20] dmaengine: ti: k3-udma: move inclusion of k3-udma-private.c to k3-udma-common.c

From: Sai Sree Kartheek Adivi via B4 Relay

Date: Tue Nov 24 2026 - 06:46:04 EST


From: Sai Sree Kartheek Adivi <s-adivi@xxxxxx>

Relocate the #include directive for k3-udma-private.c from k3-udma.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@xxxxxx>
---
drivers/dma/ti/k3-udma-common.c | 3 +++
drivers/dma/ti/k3-udma.c | 2 --
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/ti/k3-udma-common.c b/drivers/dma/ti/k3-udma-common.c
index 7c44f5dcb117c..ff5c9aedaecf3 100644
--- a/drivers/dma/ti/k3-udma-common.c
+++ b/drivers/dma/ti/k3-udma-common.c
@@ -2538,3 +2538,6 @@ EXPORT_SYMBOL_GPL(k3_udma_setup_resources);

MODULE_DESCRIPTION("Texas Instruments K3 UDMA Common Library");
MODULE_LICENSE("GPL v2");
+
+/* 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 c5de54d2a24a6..8a8e2b5e0f473 100644
--- a/drivers/dma/ti/k3-udma.c
+++ b/drivers/dma/ti/k3-udma.c
@@ -2850,5 +2850,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.55.0