dmaengine: sf-pdma: replace /** with /* for non-function comment
Subsystems (2)
PATCH 1/2 dmaengine: sf-pdma: replace /** with /* for non-function comment
There are several comments starting from "/**" but not for function comment purpose. It causes kernel-doc parsing wrong string. Replace "/**" with "/*" to fix them.
Signed-off-by Green Wan <[email protected]>
--- drivers/dma/sf-pdma/sf-pdma.c | 2 +- drivers/dma/sf-pdma/sf-pdma.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/dma/sf-pdma/sf-pdma.c +1 -1
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * SiFive FU540 Platform DMA driver * Copyright (C) 2019 SiFive *
drivers/dma/sf-pdma/sf-pdma.h +1 -1
@@ -1,5 +1,5 @@/* SPDX-License-Identifier: GPL-2.0-or-later */ -/** +/* * SiFive FU540 Platform DMA driver * Copyright (C) 2019 SiFive *
base-commit: a7e335deed174a37fc6f84f69caaeff8a08f8ff8
Signature · 1 line
2.17.1
PATCH 2/2 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 <[email protected]>
--- drivers/dma/sf-pdma/sf-pdma.c | 1 - drivers/dma/sf-pdma/sf-pdma.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/dma/sf-pdma/sf-pdma.c +0 -1
@@ -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;
drivers/dma/sf-pdma/sf-pdma.h +2 -0
@@ -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 */
Signature · 1 line
2.17.1
Quoted 3 lines · Green Wan
There are several comments starting from "/**" but not for function comment purpose. It causes kernel-doc parsing wrong string. Replace "/**" with "/*" to fix them.
Applied both, thanks
Signature · 1 line
~Vinod