aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/devices/docg3.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index ad11ef0a81f4..9afda6950df7 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -388,7 +388,7 @@ static void doc_set_device_id(struct docg3 *docg3, int id)
388 * leveling counters are stored. To access this last area of 4 bytes, a special 388 * leveling counters are stored. To access this last area of 4 bytes, a special
389 * mode must be input to the flash ASIC. 389 * mode must be input to the flash ASIC.
390 * 390 *
391 * Returns 0 if no error occured, -EIO else. 391 * Returns 0 if no error occurred, -EIO else.
392 */ 392 */
393static int doc_set_extra_page_mode(struct docg3 *docg3) 393static int doc_set_extra_page_mode(struct docg3 *docg3)
394{ 394{
@@ -685,7 +685,7 @@ out:
685 * - one read of 512 bytes at offset 0 685 * - one read of 512 bytes at offset 0
686 * - one read of 512 bytes at offset 512 + 16 686 * - one read of 512 bytes at offset 512 + 16
687 * 687 *
688 * Returns 0 if successful, -EIO if a read error occured. 688 * Returns 0 if successful, -EIO if a read error occurred.
689 */ 689 */
690static int doc_read_page_prepare(struct docg3 *docg3, int block0, int block1, 690static int doc_read_page_prepare(struct docg3 *docg3, int block0, int block1,
691 int page, int offset) 691 int page, int offset)
@@ -843,7 +843,7 @@ static void calc_block_sector(loff_t from, int *block0, int *block1, int *page,
843 * 843 *
844 * Reads flash memory OOB area of pages. 844 * Reads flash memory OOB area of pages.
845 * 845 *
846 * Returns 0 if read successfull, of -EIO, -EINVAL if an error occured 846 * Returns 0 if read successful, of -EIO, -EINVAL if an error occurred
847 */ 847 */
848static int doc_read_oob(struct mtd_info *mtd, loff_t from, 848static int doc_read_oob(struct mtd_info *mtd, loff_t from,
849 struct mtd_oob_ops *ops) 849 struct mtd_oob_ops *ops)
@@ -971,7 +971,7 @@ err:
971 * Reads flash memory pages. This function does not read the OOB chunk, but only 971 * Reads flash memory pages. This function does not read the OOB chunk, but only
972 * the page data. 972 * the page data.
973 * 973 *
974 * Returns 0 if read successfull, of -EIO, -EINVAL if an error occured 974 * Returns 0 if read successful, of -EIO, -EINVAL if an error occurred
975 */ 975 */
976static int doc_read(struct mtd_info *mtd, loff_t from, size_t len, 976static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,
977 size_t *retlen, u_char *buf) 977 size_t *retlen, u_char *buf)
@@ -1109,7 +1109,7 @@ static int doc_get_op_status(struct docg3 *docg3)
1109 * Wait for the chip to be ready again after erase or write operation, and check 1109 * Wait for the chip to be ready again after erase or write operation, and check
1110 * erase/write status. 1110 * erase/write status.
1111 * 1111 *
1112 * Returns 0 if erase successfull, -EIO if erase/write issue, -ETIMEOUT if 1112 * Returns 0 if erase successful, -EIO if erase/write issue, -ETIMEOUT if
1113 * timeout 1113 * timeout
1114 */ 1114 */
1115static int doc_write_erase_wait_status(struct docg3 *docg3) 1115static int doc_write_erase_wait_status(struct docg3 *docg3)
@@ -1186,7 +1186,7 @@ static int doc_erase_block(struct docg3 *docg3, int block0, int block1)
1186 * Erase a bunch of contiguous blocks, by pairs, as a "mtd" page of 1024 is 1186 * Erase a bunch of contiguous blocks, by pairs, as a "mtd" page of 1024 is
1187 * split into 2 pages of 512 bytes on 2 contiguous blocks. 1187 * split into 2 pages of 512 bytes on 2 contiguous blocks.
1188 * 1188 *
1189 * Returns 0 if erase successful, -EINVAL if adressing error, -EIO if erase 1189 * Returns 0 if erase successful, -EINVAL if addressing error, -EIO if erase
1190 * issue 1190 * issue
1191 */ 1191 */
1192static int doc_erase(struct mtd_info *mtd, struct erase_info *info) 1192static int doc_erase(struct mtd_info *mtd, struct erase_info *info)
@@ -1395,7 +1395,7 @@ static int doc_backup_oob(struct docg3 *docg3, loff_t to,
1395 * Or provide data without OOB, and then a all zeroed OOB will be used (ECC will 1395 * Or provide data without OOB, and then a all zeroed OOB will be used (ECC will
1396 * still be filled in if asked for). 1396 * still be filled in if asked for).
1397 * 1397 *
1398 * Returns 0 is successfull, EINVAL if length is not 14 bytes 1398 * Returns 0 is successful, EINVAL if length is not 14 bytes
1399 */ 1399 */
1400static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, 1400static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
1401 struct mtd_oob_ops *ops) 1401 struct mtd_oob_ops *ops)
@@ -1922,7 +1922,7 @@ static void doc_release_device(struct mtd_info *mtd)
1922 * docg3_resume - Awakens docg3 floor 1922 * docg3_resume - Awakens docg3 floor
1923 * @pdev: platfrom device 1923 * @pdev: platfrom device
1924 * 1924 *
1925 * Returns 0 (always successfull) 1925 * Returns 0 (always successful)
1926 */ 1926 */
1927static int docg3_resume(struct platform_device *pdev) 1927static int docg3_resume(struct platform_device *pdev)
1928{ 1928{