dmaengine: sf-pdma: move macro to header file
authorGreen Wan <green.wan@sifive.com>
Mon, 18 Nov 2019 14:35:53 +0000 (22:35 +0800)
committerVinod Koul <vkoul@kernel.org>
Fri, 22 Nov 2019 05:45:28 +0000 (11:15 +0530)
The place where the macro, SF_PDMA_REG_BASE(), is cause kernel-doc
using wrong function declaration. Move it to header file.

Signed-off-by: Green Wan <green.wan@sifive.com>
Link: https://lore.kernel.org/r/20191118143554.16129-2-green.wan@sifive.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sf-pdma/sf-pdma.c
drivers/dma/sf-pdma/sf-pdma.h

index e8b9770dcfbac86723f2cd9f721622e2cb59ca03..465256fe8b1fc30209b1c4b29dd1c8261754f7e9 100644 (file)
@@ -435,7 +435,6 @@ static int sf_pdma_irq_init(struct platform_device *pdev, struct sf_pdma *pdma)
  *
  * Return: none
  */
-#define SF_PDMA_REG_BASE(ch)   (pdma->membase + (PDMA_CHAN_OFFSET * (ch)))
 static void sf_pdma_setup_chans(struct sf_pdma *pdma)
 {
        int i;
index aab65a0bdfccc2d1cfd671c668711f8476880210..0c20167b097d0eaf08434a3fc3338dea11459545 100644 (file)
@@ -57,6 +57,8 @@
 /* Error Recovery */
 #define MAX_RETRY                                      1
 
+#define SF_PDMA_REG_BASE(ch)   (pdma->membase + (PDMA_CHAN_OFFSET * (ch)))
+
 struct pdma_regs {
        /* read-write regs */
        void __iomem *ctrl;             /* 4 bytes */