MTD: kernel-doc fixes + additions
PATCH 2/2 MTD: kernel-doc fixes + additions
From: Randy Dunlap <[email protected]>
Fix some kernel-doc typos/spellos.
Use kernel-doc syntax in places where it was almost used. Correct/add struct, struct field, and function param names where needed.
Signed-off-by Randy Dunlap <[email protected]>
--- Documentation/DocBook/mtdnand.tmpl | 7 +-- include/linux/mtd/bbm.h | 35 +++++++++------- include/linux/mtd/mtd.h | 4 - include/linux/mtd/nand.h | 3 - include/linux/mtd/onenand.h | 77 +++++++++++++++++++++---------------- include/mtd/mtd-abi.h | 2 6 files changed, 69 insertions(+), 59 deletions(-)
Documentation/DocBook/mtdnand.tmpl +3 -4
@@ -109,7 +109,7 @@ for most of the implementations. These functions can be replaced by the board driver if neccecary. Those functions are called via pointers in the NAND chip description structure. The board driver can set the functions which - should be replaced by board dependend functions before calling nand_scan(). + should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type. </para></listitem>
@@ -133,7 +133,7 @@ [REPLACEABLE]</para><para> Replaceable members hold hardware related functions which can be provided by the board driver. The board driver can set the functions which - should be replaced by board dependend functions before calling nand_scan(). + should be replaced by board dependent functions before calling nand_scan(). If the function pointer is NULL on entry to nand_scan() then the pointer is set to the default function which is suitable for the detected chip type. </para></listitem>
@@ -156,9 +156,8 @@ <title>Basic board driver</title> <para> For most boards it will be sufficient to provide just the - basic functions and fill out some really board dependend + basic functions and fill out some really board dependent members in the nand chip description structure. - See drivers/mtd/nand/skeleton for reference. </para> <sect1> <title>Basic defines</title>
include/mtd/mtd-abi.h +1 -1
@@ -133,7 +133,7 @@ struct nand_ecclayout { };/** -* struct mtd_ecc_stats - error correction status +* struct mtd_ecc_stats - error correction stats * * @corrected: number of corrected bits * @failed: number of uncorrectable errors
include/linux/mtd/bbm.h +19 -16
@@ -19,21 +19,21 @@/** * struct nand_bbt_descr - bad block table descriptor -* @param options options for this descriptor -* @param pages the page(s) where we find the bbt, used with +* @options: options for this descriptor +* @pages: the page(s) where we find the bbt, used with * option BBT_ABSPAGE when bbt is searched, * then we store the found bbts pages here. * Its an array and supports up to 8 chips now -* @param offs offset of the pattern in the oob area of the page -* @param veroffs offset of the bbt version counter in the oob are of the page -* @param version version read from the bbt page during scan -* @param len length of the pattern, if 0 no pattern check is performed -* @param maxblocks maximum number of blocks to search for a bbt. This number of -* blocks is reserved at the end of the device +* @offs: offset of the pattern in the oob area of the page +* @veroffs: offset of the bbt version counter in the oob area of the page +* @version: version read from the bbt page during scan +* @len: length of the pattern, if 0 no pattern check is performed +* @maxblocks: maximum number of blocks to search for a bbt. This +* number of blocks is reserved at the end of the device * where the tables are written. -* @param reserved_block_code if non-0, this pattern denotes a reserved +* @reserved_block_code: if non-0, this pattern denotes a reserved * (rather than bad) block in the stored bbt -* @param pattern pattern to identify bad block table or factory marked +* @pattern: pattern to identify bad block table or factory marked * good / bad blocks, can be NULL, if len = 0 * * Descriptor for the bad block table marker and the descriptor for the
@@ -93,12 +93,15 @@ struct nand_bbt_descr {#define ONENAND_BADBLOCK_POS 0/** -* struct bbt_info - [GENERIC] Bad Block Table data structure -* @param bbt_erase_shift [INTERN] number of address bits in a bbt entry -* @param badblockpos [INTERN] position of the bad block marker in the oob area -* @param bbt [INTERN] bad block table pointer -* @param badblock_pattern [REPLACEABLE] bad block scan pattern used for initial bad block scan -* @param priv [OPTIONAL] pointer to private bbm date +* struct bbm_info - [GENERIC] Bad Block Table data structure +* @bbt_erase_shift: [INTERN] number of address bits in a bbt entry +* @badblockpos: [INTERN] position of the bad block marker in the oob area +* @options: options for this descriptor +* @bbt: [INTERN] bad block table pointer +* @isbad_bbt: function to determine if a block is bad +* @badblock_pattern: [REPLACEABLE] bad block scan pattern used for +* initial bad block scan +* @priv: [OPTIONAL] pointer to private bbm date */ struct bbm_info {int bbt_erase_shift;
include/linux/mtd/mtd.h +2 -2
@@ -77,11 +77,11 @@ typedef enum {* * @len: number of bytes to write/read. When a data buffer is given * (datbuf != NULL) this is the number of data bytes. When -+ no data buffer is available this is the number of oob bytes. +* no data buffer is available this is the number of oob bytes. * * @retlen: number of bytes written/read. When a data buffer is given * (datbuf != NULL) this is the number of data bytes. When -+ no data buffer is available this is the number of oob bytes. +* no data buffer is available this is the number of oob bytes. * * @ooblen: number of oob bytes per page * @ooboffs: offset of oob data in the oob area (only relevant when
include/linux/mtd/nand.h +0 -3
@@ -407,7 +407,6 @@ struct nand_chip {/** * struct nand_flash_dev - NAND Flash Device ID Structure -* * @name: Identify the device type * @id: device ID code * @pagesize: Pagesize in bytes. Either 256 or 512 or 0
@@ -526,7 +525,6 @@ extern int nand_do_read(struct mtd_info/** * struct platform_nand_chip - chip level device structure -* * @nr_chips: max. number of chips to scan for * @chip_offset: chip number offset * @nr_partitions: number of partitions pointed to by partitions (or zero)
@@ -549,7 +547,6 @@ struct platform_nand_chip {/** * struct platform_nand_ctrl - controller level device structure -* * @hwcontrol: platform specific hardware control structure * @dev_ready: platform specific function to read ready/busy pin * @select_chip: platform specific chip select function
include/linux/mtd/onenand.h +44 -33
101 lines not on this page · raw message
---