提交 097ccca7 编写于 作者: X Xiaolei Li 提交者: Boris Brezillon

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: NXiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com>
上级 6b6de654
...@@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(nanddev_isbad); ...@@ -51,7 +51,7 @@ EXPORT_SYMBOL_GPL(nanddev_isbad);
/** /**
* nanddev_markbad() - Mark a block as bad * nanddev_markbad() - Mark a block as bad
* @nand: NAND device * @nand: NAND device
* @block: block to mark bad * @pos: position of the block to mark bad
* *
* Mark a block bad. This function is updating the BBT if available and * Mark a block bad. This function is updating the BBT if available and
* calls the low-level markbad hook (nand->ops->markbad()). * calls the low-level markbad hook (nand->ops->markbad()).
...@@ -117,9 +117,9 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved); ...@@ -117,9 +117,9 @@ EXPORT_SYMBOL_GPL(nanddev_isreserved);
/** /**
* nanddev_erase() - Erase a NAND portion * nanddev_erase() - Erase a NAND portion
* @nand: NAND device * @nand: NAND device
* @block: eraseblock to erase * @pos: position of the block to erase
* *
* Erases @block if it's not bad. * Erases the block if it's not bad.
* *
* Return: 0 in case of success, a negative error code otherwise. * Return: 0 in case of success, a negative error code otherwise.
*/ */
...@@ -179,11 +179,11 @@ EXPORT_SYMBOL_GPL(nanddev_mtd_erase); ...@@ -179,11 +179,11 @@ EXPORT_SYMBOL_GPL(nanddev_mtd_erase);
/** /**
* nanddev_init() - Initialize a NAND device * nanddev_init() - Initialize a NAND device
* @nand: NAND device * @nand: NAND device
* @memorg: NAND memory organization descriptor
* @ops: NAND device operations * @ops: NAND device operations
* @owner: NAND device owner
* *
* Initializes a NAND device object. Consistency checks are done on @memorg and * Initializes a NAND device object. Consistency checks are done on @ops and
* @ops. Also takes care of initializing the BBT. * @nand->memorg. Also takes care of initializing the BBT.
* *
* Return: 0 in case of success, a negative error code otherwise. * Return: 0 in case of success, a negative error code otherwise.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册