diff options
author | Xiaolei Li <xiaolei.li@mediatek.com> | 2018-03-28 21:34:58 -0400 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-03-29 03:31:54 -0400 |
commit | c77a93120640057bd7c3fd7eca25c427bb6de409 (patch) | |
tree | 19a4ac90273a352a8d69d834e26406b198a6bc1c | |
parent | 7d5cba597dbfc55c43761e255f1be646ef3ab633 (diff) |
mtd: Fix some function description mismatches in mtdcore.c
In mtdcore.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/mtdcore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 20d5262c5b5c..807d17d863b3 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c | |||
@@ -419,7 +419,7 @@ int mtd_wunit_to_pairing_info(struct mtd_info *mtd, int wunit, | |||
419 | EXPORT_SYMBOL_GPL(mtd_wunit_to_pairing_info); | 419 | EXPORT_SYMBOL_GPL(mtd_wunit_to_pairing_info); |
420 | 420 | ||
421 | /** | 421 | /** |
422 | * mtd_wunit_to_pairing_info - get wunit from pairing information | 422 | * mtd_pairing_info_to_wunit - get wunit from pairing information |
423 | * @mtd: pointer to new MTD device info structure | 423 | * @mtd: pointer to new MTD device info structure |
424 | * @info: pairing information struct | 424 | * @info: pairing information struct |
425 | * | 425 | * |
@@ -1507,9 +1507,9 @@ int mtd_ooblayout_get_databytes(struct mtd_info *mtd, u8 *databuf, | |||
1507 | EXPORT_SYMBOL_GPL(mtd_ooblayout_get_databytes); | 1507 | EXPORT_SYMBOL_GPL(mtd_ooblayout_get_databytes); |
1508 | 1508 | ||
1509 | /** | 1509 | /** |
1510 | * mtd_ooblayout_get_eccbytes - set data bytes into the oob buffer | 1510 | * mtd_ooblayout_set_databytes - set data bytes into the oob buffer |
1511 | * @mtd: mtd info structure | 1511 | * @mtd: mtd info structure |
1512 | * @eccbuf: source buffer to get data bytes from | 1512 | * @databuf: source buffer to get data bytes from |
1513 | * @oobbuf: OOB buffer | 1513 | * @oobbuf: OOB buffer |
1514 | * @start: first ECC byte to set | 1514 | * @start: first ECC byte to set |
1515 | * @nbytes: number of ECC bytes to set | 1515 | * @nbytes: number of ECC bytes to set |
@@ -1541,7 +1541,7 @@ int mtd_ooblayout_count_freebytes(struct mtd_info *mtd) | |||
1541 | EXPORT_SYMBOL_GPL(mtd_ooblayout_count_freebytes); | 1541 | EXPORT_SYMBOL_GPL(mtd_ooblayout_count_freebytes); |
1542 | 1542 | ||
1543 | /** | 1543 | /** |
1544 | * mtd_ooblayout_count_freebytes - count the number of ECC bytes in OOB | 1544 | * mtd_ooblayout_count_eccbytes - count the number of ECC bytes in OOB |
1545 | * @mtd: mtd info structure | 1545 | * @mtd: mtd info structure |
1546 | * | 1546 | * |
1547 | * Works like mtd_ooblayout_count_bytes(), except it count ECC bytes. | 1547 | * Works like mtd_ooblayout_count_bytes(), except it count ECC bytes. |