aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiaolei Li <xiaolei.li@mediatek.com>2018-03-28 21:34:59 -0400
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-03-29 13:41:57 -0400
commit097ccca726ffedb277c104aba45c59d075969e51 (patch)
tree69d0e94fdcb0b3645b6cde162ba5e1c2c840ff8c
parent6b6de6543dd5040727afc56a69c7ba6698dd3090 (diff)
mtd: nand: Fix some function description mismatches in core.c
In core.c, some function descriptions do not match function definitions. Just fix these mismatches. Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
-rw-r--r--drivers/mtd/nand/core.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c
index f237a688f8e9..d0cd6f8635d7 100644
--- a/drivers/mtd/nand/core.c
+++ b/drivers/mtd/nand/core.c
@@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(nanddev_isbad);
51/** 51/**
52 * nanddev_markbad() - Mark a block as bad 52 * nanddev_markbad() - Mark a block as bad
53 * @nand: NAND device 53 * @nand: NAND device
54 * @block: block to mark bad 54 * @pos: position of the block to mark bad
55 * 55 *
56 * Mark a block bad. This function is updating the BBT if available and 56 * Mark a block bad. This function is updating the BBT if available and
57 * calls the low-level markbad hook (nand->ops->markbad()). 57 * calls the low-level markbad hook (nand->ops->markbad()).
@@ -117,9 +117,9 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved);
117/** 117/**
118 * nanddev_erase() - Erase a NAND portion 118 * nanddev_erase() - Erase a NAND portion
119 * @nand: NAND device 119 * @nand: NAND device
120 * @block: eraseblock to erase 120 * @pos: position of the block to erase
121 * 121 *
122 * Erases @block if it's not bad. 122 * Erases the block if it's not bad.
123 * 123 *
124 * Return: 0 in case of success, a negative error code otherwise. 124 * Return: 0 in case of success, a negative error code otherwise.
125 */ 125 */
@@ -179,11 +179,11 @@ EXPORT_SYMBOL_GPL(nanddev_mtd_erase);
179/** 179/**
180 * nanddev_init() - Initialize a NAND device 180 * nanddev_init() - Initialize a NAND device
181 * @nand: NAND device 181 * @nand: NAND device
182 * @memorg: NAND memory organization descriptor
183 * @ops: NAND device operations 182 * @ops: NAND device operations
183 * @owner: NAND device owner
184 * 184 *
185 * Initializes a NAND device object. Consistency checks are done on @memorg and 185 * Initializes a NAND device object. Consistency checks are done on @ops and
186 * @ops. Also takes care of initializing the BBT. 186 * @nand->memorg. Also takes care of initializing the BBT.
187 * 187 *
188 * Return: 0 in case of success, a negative error code otherwise. 188 * Return: 0 in case of success, a negative error code otherwise.
189 */ 189 */