Re: [PATCH 03/23] mtd: nand: onenand: onenand_base: Fix expected kernel-doc formatting

From: Miquel Raynal
Date: Mon Nov 02 2020 - 07:33:08 EST


Hi Lee,

Lee Jones <lee.jones@xxxxxxxxxx> wrote on Mon, 2 Nov 2020 11:53:46
+0000:

> Fixes the following W=1 kernel build warning(s):
>
> drivers/mtd/nand/onenand/onenand_base.c:140: warning: Function parameter or member 'mtd' not described in 'onenand_ooblayout_32_64_ecc'
> drivers/mtd/nand/onenand/onenand_base.c:140: warning: Function parameter or member 'section' not described in 'onenand_ooblayout_32_64_ecc'
> drivers/mtd/nand/onenand/onenand_base.c:140: warning: Function parameter or member 'oobregion' not described in 'onenand_ooblayout_32_64_ecc'
> drivers/mtd/nand/onenand/onenand_base.c:200: warning: Function parameter or member 'addr' not described in 'onenand_readw'
> drivers/mtd/nand/onenand/onenand_base.c:212: warning: Function parameter or member 'value' not described in 'onenand_writew'
> drivers/mtd/nand/onenand/onenand_base.c:212: warning: Function parameter or member 'addr' not described in 'onenand_writew'
> drivers/mtd/nand/onenand/onenand_base.c:225: warning: Function parameter or member 'this' not described in 'onenand_block_address'
> drivers/mtd/nand/onenand/onenand_base.c:225: warning: Function parameter or member 'block' not described in 'onenand_block_address'
> drivers/mtd/nand/onenand/onenand_base.c:242: warning: Function parameter or member 'this' not described in 'onenand_bufferram_address'
> drivers/mtd/nand/onenand/onenand_base.c:242: warning: Function parameter or member 'block' not described in 'onenand_bufferram_address'
>
> NB: Snipped 200 lines for brevity.
>
> Cc: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
> Cc: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
> Cc: Richard Weinberger <richard@xxxxxx>
> Cc: Vignesh Raghavendra <vigneshr@xxxxxx>
> Cc: Adrian Hunter <ext-adrian.hunter@xxxxxxxxx>
> Cc: linux-mtd@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
> ---
> drivers/mtd/nand/onenand/onenand_base.c | 438 ++++++++++++------------
> 1 file changed, 219 insertions(+), 219 deletions(-)
>
> diff --git a/drivers/mtd/nand/onenand/onenand_base.c b/drivers/mtd/nand/onenand/onenand_base.c
> index 188b8061e1f79..35f851bf90a3c 100644
> --- a/drivers/mtd/nand/onenand/onenand_base.c
> +++ b/drivers/mtd/nand/onenand/onenand_base.c
> @@ -192,7 +192,7 @@ static const unsigned char ffchars[] = {
>

[...]

> /**
> * onenand_buffer_address - [DEFAULT] Get buffer address
> - * @param dataram1 DataRAM index
> - * @param sectors the sector address
> - * @param count the number of sectors
> + * @dataram:1 DataRAM index

Seems that the one is on the wrong side of the colon?

> + * @sectors: the sector address
> + * @count: the number of sectors
> * @return the start buffer value
> *
> * Setup Start Buffer Register (F200h)

The rest lgtm.

Thanks,
Miquèl