diff options
author | Green Wan <green.wan@sifive.com> | 2019-11-18 22:35:53 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-11-22 11:15:28 +0530 |
commit | 7d268a28ee336ae233b036057607fb73b844d512 (patch) | |
tree | ef9f9d0ac30a8a8ef64f2e3b977cb7d92a166764 /drivers/dma/sf-pdma/sf-pdma.h | |
parent | dd9c324a5e96bfdc4c5c965da6fbd680340cd3f2 (diff) |
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>
Diffstat (limited to 'drivers/dma/sf-pdma/sf-pdma.h')
-rw-r--r-- | drivers/dma/sf-pdma/sf-pdma.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/sf-pdma/sf-pdma.h b/drivers/dma/sf-pdma/sf-pdma.h index aab65a0bdfcc..0c20167b097d 100644 --- a/drivers/dma/sf-pdma/sf-pdma.h +++ b/drivers/dma/sf-pdma/sf-pdma.h @@ -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 */ |