dmaengine: sf-pdma: move macro to header file

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>
This commit is contained in:
Green Wan 2019-11-18 22:35:53 +08:00 committed by Vinod Koul
parent dd9c324a5e
commit 7d268a28ee
2 changed files with 2 additions and 1 deletions

View File

@ -435,7 +435,6 @@ static int sf_pdma_irq_init(struct platform_device *pdev, struct sf_pdma *pdma)
* *
* Return: none * Return: none
*/ */
#define SF_PDMA_REG_BASE(ch) (pdma->membase + (PDMA_CHAN_OFFSET * (ch)))
static void sf_pdma_setup_chans(struct sf_pdma *pdma) static void sf_pdma_setup_chans(struct sf_pdma *pdma)
{ {
int i; int i;

View File

@ -57,6 +57,8 @@
/* Error Recovery */ /* Error Recovery */
#define MAX_RETRY 1 #define MAX_RETRY 1
#define SF_PDMA_REG_BASE(ch) (pdma->membase + (PDMA_CHAN_OFFSET * (ch)))
struct pdma_regs { struct pdma_regs {
/* read-write regs */ /* read-write regs */
void __iomem *ctrl; /* 4 bytes */ void __iomem *ctrl; /* 4 bytes */