Skip to content

Commit b6d676d

Browse files
rddunlaptorvalds
authored andcommitted
mtd/nand_base: fix kernel-doc warnings & typos
Fix mtd/nand_base.c kernel-doc warnings and typos. Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'mtd' Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'ofs' Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'len' Warning(drivers/mtd/nand/nand_base.c:893): No description found for parameter 'invert' Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'mtd' Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'ofs' Warning(drivers/mtd/nand/nand_base.c:930): No description found for parameter 'len' Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'mtd' Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'ofs' Warning(drivers/mtd/nand/nand_base.c:987): No description found for parameter 'len' Warning(drivers/mtd/nand/nand_base.c:2087): No description found for parameter 'len' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 71740c4 commit b6d676d

2 files changed

Lines changed: 22 additions & 19 deletions

File tree

‎drivers/mtd/nand/nand_base.c‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -889,17 +889,17 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *chip)
889889
}
890890

891891
/**
892-
* __nand_unlock - [REPLACABLE] unlocks specified locked blockes
892+
* __nand_unlock - [REPLACEABLE] unlocks specified locked blocks
893893
*
894-
* @param mtd - mtd info
895-
* @param ofs - offset to start unlock from
896-
* @param len - length to unlock
897-
* @invert - when = 0, unlock the range of blocks within the lower and
894+
* @mtd: mtd info
895+
* @ofs: offset to start unlock from
896+
* @len: length to unlock
897+
* @invert: when = 0, unlock the range of blocks within the lower and
898898
* upper boundary address
899-
* whne = 1, unlock the range of blocks outside the boundaries
899+
* when = 1, unlock the range of blocks outside the boundaries
900900
* of the lower and upper boundary address
901901
*
902-
* @return - unlock status
902+
* return - unlock status
903903
*/
904904
static int __nand_unlock(struct mtd_info *mtd, loff_t ofs,
905905
uint64_t len, int invert)
@@ -931,13 +931,13 @@ static int __nand_unlock(struct mtd_info *mtd, loff_t ofs,
931931
}
932932

933933
/**
934-
* nand_unlock - [REPLACABLE] unlocks specified locked blockes
934+
* nand_unlock - [REPLACEABLE] unlocks specified locked blocks
935935
*
936-
* @param mtd - mtd info
937-
* @param ofs - offset to start unlock from
938-
* @param len - length to unlock
936+
* @mtd: mtd info
937+
* @ofs: offset to start unlock from
938+
* @len: length to unlock
939939
*
940-
* @return - unlock status
940+
* return - unlock status
941941
*/
942942
int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
943943
{
@@ -982,16 +982,16 @@ int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len)
982982
}
983983

984984
/**
985-
* nand_lock - [REPLACABLE] locks all blockes present in the device
985+
* nand_lock - [REPLACEABLE] locks all blocks present in the device
986986
*
987-
* @param mtd - mtd info
988-
* @param ofs - offset to start unlock from
989-
* @param len - length to unlock
987+
* @mtd: mtd info
988+
* @ofs: offset to start unlock from
989+
* @len: length to unlock
990990
*
991-
* @return - lock status
991+
* return - lock status
992992
*
993-
* This feature is not support in many NAND parts. 'Micron' NAND parts
994-
* do have this feature, but it allows only to lock all blocks not for
993+
* This feature is not supported in many NAND parts. 'Micron' NAND parts
994+
* do have this feature, but it allows only to lock all blocks, not for
995995
* specified range for block.
996996
*
997997
* Implementing 'lock' feature by making use of 'unlock', for now.
@@ -2093,6 +2093,7 @@ static int nand_write_page(struct mtd_info *mtd, struct nand_chip *chip,
20932093
* nand_fill_oob - [Internal] Transfer client buffer to oob
20942094
* @chip: nand chip structure
20952095
* @oob: oob data buffer
2096+
* @len: oob data write length
20962097
* @ops: oob ops structure
20972098
*/
20982099
static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len,

‎scripts/kernel-doc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,6 +1454,8 @@ sub dump_enum($$) {
14541454
my $file = shift;
14551455

14561456
$x =~ s@/\*.*?\*/@@gos; # strip comments.
1457+
$x =~ s/^#\s*define\s+.*$//; # strip #define macros inside enums
1458+
14571459
if ($x =~ /enum\s+(\w+)\s*{(.*)}/) {
14581460
$declaration_name = $1;
14591461
my $members = $2;

0 commit comments

Comments
 (0)