Skip to contentSkip to conversation

dmaengine: sf-pdma: replace /** with /* for non-function comment

PATCH Applied Green Wan 2 participants 3 messages Nov 18, 2019 – Nov 22, 2019

Subsystems (2)
lore
Share & tools
lore

Green Wan

author
#0 lore raw

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.

---
 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
index 16fe00553496..e8b9770dcfba 100644
@@ -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
index 55816c9e0249..aab65a0bdfcc 100644
@@ -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
author
#1 lore raw

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.

---
 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
index e8b9770dcfba..465256fe8b1f 100644
@@ -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
index aab65a0bdfcc..0c20167b097d 100644
@@ -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
maintainer Applied
#2 lore raw
In reply to Green Wan
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