diff mbox series

mtd: rawnand: omap: Fix kernel doc warning on 'calcuate' typo

Message ID 20210801205909.7102-1-vladimir@molokov.se
State Accepted
Headers show
Series mtd: rawnand: omap: Fix kernel doc warning on 'calcuate' typo | expand

Commit Message

Vladimir Molokov Aug. 1, 2021, 8:59 p.m. UTC
Fix a trivial typo which is reported after enabling W=1 level of warnings:

  drivers/mtd/nand/raw/omap2.c:927: warning: expecting prototype
    for omap_calcuate_ecc(). Prototype was for omap_calculate_ecc() instead

Signed-off-by: Vladimir Molokov <vladimir@molokov.se>
---
 drivers/mtd/nand/raw/omap2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Miquel Raynal Aug. 6, 2021, 8:03 p.m. UTC | #1
On Sun, 2021-08-01 at 20:59:09 UTC, Vladimir Molokov wrote:
> Fix a trivial typo which is reported after enabling W=1 level of warnings:
> 
>   drivers/mtd/nand/raw/omap2.c:927: warning: expecting prototype
>     for omap_calcuate_ecc(). Prototype was for omap_calculate_ecc() instead
> 
> Signed-off-by: Vladimir Molokov <vladimir@molokov.se>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel
diff mbox series

Patch

diff --git a/drivers/mtd/nand/raw/omap2.c b/drivers/mtd/nand/raw/omap2.c
index b1839eef5b65..b26d4947af02 100644
--- a/drivers/mtd/nand/raw/omap2.c
+++ b/drivers/mtd/nand/raw/omap2.c
@@ -911,7 +911,7 @@  static int omap_correct_data(struct nand_chip *chip, u_char *dat,
 }
 
 /**
- * omap_calcuate_ecc - Generate non-inverted ECC bytes.
+ * omap_calculate_ecc - Generate non-inverted ECC bytes.
  * @chip: NAND chip object
  * @dat: The pointer to data on which ecc is computed
  * @ecc_code: The ecc_code buffer