mtg: docg3: fix comment errors
occured ==> occurred successfull ==> successful adressing ==> addressing Signed-off-by: Octavian Moraru <octmoraru@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
f7232f0808
commit
86d2f6fbb9
1 changed files with 8 additions and 8 deletions
|
@ -388,7 +388,7 @@ static void doc_set_device_id(struct docg3 *docg3, int id)
|
|||
* leveling counters are stored. To access this last area of 4 bytes, a special
|
||||
* mode must be input to the flash ASIC.
|
||||
*
|
||||
* Returns 0 if no error occured, -EIO else.
|
||||
* Returns 0 if no error occurred, -EIO else.
|
||||
*/
|
||||
static int doc_set_extra_page_mode(struct docg3 *docg3)
|
||||
{
|
||||
|
@ -685,7 +685,7 @@ static int doc_ecc_bch_fix_data(struct docg3 *docg3, void *buf, u8 *hwecc)
|
|||
* - one read of 512 bytes at offset 0
|
||||
* - one read of 512 bytes at offset 512 + 16
|
||||
*
|
||||
* Returns 0 if successful, -EIO if a read error occured.
|
||||
* Returns 0 if successful, -EIO if a read error occurred.
|
||||
*/
|
||||
static int doc_read_page_prepare(struct docg3 *docg3, int block0, int block1,
|
||||
int page, int offset)
|
||||
|
@ -843,7 +843,7 @@ static void calc_block_sector(loff_t from, int *block0, int *block1, int *page,
|
|||
*
|
||||
* Reads flash memory OOB area of pages.
|
||||
*
|
||||
* Returns 0 if read successfull, of -EIO, -EINVAL if an error occured
|
||||
* Returns 0 if read successful, of -EIO, -EINVAL if an error occurred
|
||||
*/
|
||||
static int doc_read_oob(struct mtd_info *mtd, loff_t from,
|
||||
struct mtd_oob_ops *ops)
|
||||
|
@ -971,7 +971,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t from,
|
|||
* Reads flash memory pages. This function does not read the OOB chunk, but only
|
||||
* the page data.
|
||||
*
|
||||
* Returns 0 if read successfull, of -EIO, -EINVAL if an error occured
|
||||
* Returns 0 if read successful, of -EIO, -EINVAL if an error occurred
|
||||
*/
|
||||
static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,
|
||||
size_t *retlen, u_char *buf)
|
||||
|
@ -1109,7 +1109,7 @@ static int doc_get_op_status(struct docg3 *docg3)
|
|||
* Wait for the chip to be ready again after erase or write operation, and check
|
||||
* erase/write status.
|
||||
*
|
||||
* Returns 0 if erase successfull, -EIO if erase/write issue, -ETIMEOUT if
|
||||
* Returns 0 if erase successful, -EIO if erase/write issue, -ETIMEOUT if
|
||||
* timeout
|
||||
*/
|
||||
static 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)
|
|||
* Erase a bunch of contiguous blocks, by pairs, as a "mtd" page of 1024 is
|
||||
* split into 2 pages of 512 bytes on 2 contiguous blocks.
|
||||
*
|
||||
* Returns 0 if erase successful, -EINVAL if adressing error, -EIO if erase
|
||||
* Returns 0 if erase successful, -EINVAL if addressing error, -EIO if erase
|
||||
* issue
|
||||
*/
|
||||
static 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,
|
|||
* Or provide data without OOB, and then a all zeroed OOB will be used (ECC will
|
||||
* still be filled in if asked for).
|
||||
*
|
||||
* Returns 0 is successfull, EINVAL if length is not 14 bytes
|
||||
* Returns 0 is successful, EINVAL if length is not 14 bytes
|
||||
*/
|
||||
static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
|
||||
struct mtd_oob_ops *ops)
|
||||
|
@ -1922,7 +1922,7 @@ static void doc_release_device(struct mtd_info *mtd)
|
|||
* docg3_resume - Awakens docg3 floor
|
||||
* @pdev: platfrom device
|
||||
*
|
||||
* Returns 0 (always successfull)
|
||||
* Returns 0 (always successful)
|
||||
*/
|
||||
static int docg3_resume(struct platform_device *pdev)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue