Skip to contentSkip to conversation

mtd: rawnand: marvell: Minor documentation correction

PATCH Superseded Souptick Joarder 2 participants 3 messages Apr 25, 2021 – Jun 2, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: rawnand: marvell: Minor documentation correction

Kernel test robot throws below warning -> drivers/mtd/nand/raw/marvell_nand.c:454: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Minor documentation correction.

---
 drivers/mtd/nand/raw/marvell_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/marvell_nand.c +1 -1
index 79da6b0..e7b48d4 100644
@@ -451,7 +451,7 @@ struct marvell_nfc_timings {
 };
 
 /**
- * Derives a duration in numbers of clock cycles.
+ * TO_CYCLES*() - Derives a duration in numbers of clock cycles.
  *
  * @ps: Duration in pico-seconds
  * @period_ns:  Clock period in nano-seconds
Signature · 1 line
1.9.1
#1 lore raw
Quoted 19 lines · Souptick Joarder

Kernel test robot throws below warning -> drivers/mtd/nand/raw/marvell_nand.c:454: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Minor documentation correction.

---
 drivers/mtd/nand/raw/marvell_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/marvell_nand.c +0 -0
index 79da6b0..e7b48d4 100644

drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_timings { · line 454

Quoted 5 lines
drivers/mtd/nand/raw/marvell_nand.c +1 -1
@@ -451,7 +451,7 @@ struct marvell_nfc_timings {
 };
 
 /**
- * Derives a duration in numbers of clock cycles.
+ * TO_CYCLES*() - Derives a duration in numbers of clock cycles.

Hi--

Did you test that? I would be surprised if kernel-doc stays quiet with that change.

[testing]

Yep, kernel-doc doesn't like to see that '*' there. That doesn't work.

Quoted 4 lines
drivers/mtd/nand/raw/marvell_nand.c +0 -0
  *
  * @ps: Duration in pico-seconds
  * @period_ns:  Clock period in nano-seconds
Signature · 1 line
~Randy
#2 lore raw
Quoted 23 lines · Randy Dunlap
Quoted 21 lines · Souptick Joarder

Kernel test robot throws below warning -> drivers/mtd/nand/raw/marvell_nand.c:454: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Minor documentation correction.

---
 drivers/mtd/nand/raw/marvell_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/marvell_nand.c +0 -0
index 79da6b0..e7b48d4 100644
@@ -451,7 +451,7 @@ struct marvell_nfc_timings {
 };
 
Quoted 8 lines

drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_timings { · line 454

Quoted 3 lines
drivers/mtd/nand/raw/marvell_nand.c +1 -1
 /**
- * Derives a duration in numbers of clock cycles.
+ * TO_CYCLES*() - Derives a duration in numbers of clock cycles.

Hi--

Did you test that? I would be surprised if kernel-doc stays quiet with that change.

Sorry, I missed this thread. yes it's wrong.
Reason -> I posted the wrong patch.
I will correct it in v2.

Quoted 15 lines

[testing]

Yep, kernel-doc doesn't like to see that '*' there. That doesn't work.

drivers/mtd/nand/raw/marvell_nand.c struct marvell_nfc_timings { · line 457

Quoted 4 lines
drivers/mtd/nand/raw/marvell_nand.c +0 -0
  *
  * @ps: Duration in pico-seconds
  * @period_ns:  Clock period in nano-seconds

--
~Randy