Patchwork MTD OneNAND: typo fixes

login
register
mail settings
Submitter Mika Korhonen
Date June 9, 2009, 6:52 p.m.
Message ID <1244573555-8577-1-git-send-email-mika.j.korhonen@gmail.com>
Download mbox | patch
Permalink /patch/28346/
State Accepted
Commit 492e1501431e0d24c5b46933fdcb60639eacded7
Headers show

Comments

Mika Korhonen - June 9, 2009, 6:52 p.m.
Signed-off-by: Mika Korhonen <mika.j.korhonen@gmail.com>
---
 drivers/mtd/onenand/onenand_base.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)
Kyungmin Park - June 12, 2009, 12:43 a.m.
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>

On Wed, Jun 10, 2009 at 3:52 AM, Mika Korhonen<mika.j.korhonen@gmail.com> wrote:
> Signed-off-by: Mika Korhonen <mika.j.korhonen@gmail.com>
> ---
>  drivers/mtd/onenand/onenand_base.c |   20 ++++++++++----------
>  1 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
> index 864327e..4c18736 100644
> --- a/drivers/mtd/onenand/onenand_base.c
> +++ b/drivers/mtd/onenand/onenand_base.c
> @@ -1182,7 +1182,7 @@ static int onenand_read_ops_nolock(struct mtd_info *mtd, loff_t from,
>                        /*
>                         * Chip boundary handling in DDP
>                         * Now we issued chip 1 read and pointed chip 1
> -                        * bufferam so we have to point chip 0 bufferam.
> +                        * bufferram so we have to point chip 0 bufferram.
>                         */
>                        if (ONENAND_IS_DDP(this) &&
>                            unlikely(from == (this->chipsize >> 1))) {
> @@ -1858,8 +1858,8 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
>                        ONENAND_SET_NEXT_BUFFERRAM(this);
>
>                /*
> -                * 2 PLANE, MLC, and Flex-OneNAND doesn't support
> -                * write-while-programe feature.
> +                * 2 PLANE, MLC, and Flex-OneNAND do not support
> +                * write-while-program feature.
>                 */
>                if (!ONENAND_IS_2PLANE(this) && !first) {
>                        ONENAND_SET_PREV_BUFFERRAM(this);
> @@ -1870,7 +1870,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
>                        onenand_update_bufferram(mtd, prev, !ret && !prev_subpage);
>                        if (ret) {
>                                written -= prevlen;
> -                               printk(KERN_ERR "onenand_write_ops_nolock: write filaed %d\n", ret);
> +                               printk(KERN_ERR "onenand_write_ops_nolock: write failed %d\n", ret);
>                                break;
>                        }
>
> @@ -1896,7 +1896,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
>                        /* In partial page write we don't update bufferram */
>                        onenand_update_bufferram(mtd, to, !ret && !subpage);
>                        if (ret) {
> -                               printk(KERN_ERR "onenand_write_ops_nolock: write filaed %d\n", ret);
> +                               printk(KERN_ERR "onenand_write_ops_nolock: write failed %d\n", ret);
>                                break;
>                        }
>
> @@ -2192,7 +2192,7 @@ static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr)
>        /* Grab the lock and see if the device is available */
>        onenand_get_device(mtd, FL_ERASING);
>
> -       /* Loop throught the pages */
> +       /* Loop through the blocks */
>        instr->state = MTD_ERASING;
>
>        while (len) {
> @@ -2319,7 +2319,7 @@ static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
>         if (bbm->bbt)
>                 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
>
> -        /* We write two bytes, so we dont have to mess with 16 bit access */
> +        /* We write two bytes, so we don't have to mess with 16-bit access */
>         ofs += mtd->oobsize + (bbm->badblockpos & ~0x01);
>        /* FIXME : What to do when marking SLC block in partition
>         *         with MLC erasesize? For now, it is not advisable to
> @@ -2548,7 +2548,7 @@ static void onenand_unlock_all(struct mtd_info *mtd)
>
>  #ifdef CONFIG_MTD_ONENAND_OTP
>
> -/* Interal OTP operation */
> +/* Internal OTP operation */
>  typedef int (*otp_op_t)(struct mtd_info *mtd, loff_t form, size_t len,
>                size_t *retlen, u_char *buf);
>
> @@ -2912,7 +2912,7 @@ static void onenand_check_features(struct mtd_info *mtd)
>                this->options |= ONENAND_HAS_2PLANE;
>
>        case ONENAND_DEVICE_DENSITY_2Gb:
> -               /* 2Gb DDP don't have 2 plane */
> +               /* 2Gb DDP does not have 2 plane */
>                if (!ONENAND_IS_DDP(this))
>                        this->options |= ONENAND_HAS_2PLANE;
>                this->options |= ONENAND_HAS_UNLOCK_ALL;
> @@ -3374,7 +3374,7 @@ static int onenand_probe(struct mtd_info *mtd)
>        /* It's real page size */
>        this->writesize = mtd->writesize;
>
> -       /* REVIST: Multichip handling */
> +       /* REVISIT: Multichip handling */
>
>        if (FLEXONENAND(this))
>                flexonenand_get_size(mtd);
> --
> 1.6.0.4
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>

Patch

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 864327e..4c18736 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -1182,7 +1182,7 @@  static int onenand_read_ops_nolock(struct mtd_info *mtd, loff_t from,
  			/*
  			 * Chip boundary handling in DDP
  			 * Now we issued chip 1 read and pointed chip 1
- 			 * bufferam so we have to point chip 0 bufferam.
+			 * bufferram so we have to point chip 0 bufferram.
  			 */
  			if (ONENAND_IS_DDP(this) &&
  			    unlikely(from == (this->chipsize >> 1))) {
@@ -1858,8 +1858,8 @@  static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 			ONENAND_SET_NEXT_BUFFERRAM(this);
 
 		/*
-		 * 2 PLANE, MLC, and Flex-OneNAND doesn't support
-		 * write-while-programe feature.
+		 * 2 PLANE, MLC, and Flex-OneNAND do not support
+		 * write-while-program feature.
 		 */
 		if (!ONENAND_IS_2PLANE(this) && !first) {
 			ONENAND_SET_PREV_BUFFERRAM(this);
@@ -1870,7 +1870,7 @@  static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 			onenand_update_bufferram(mtd, prev, !ret && !prev_subpage);
 			if (ret) {
 				written -= prevlen;
-				printk(KERN_ERR "onenand_write_ops_nolock: write filaed %d\n", ret);
+				printk(KERN_ERR "onenand_write_ops_nolock: write failed %d\n", ret);
 				break;
 			}
 
@@ -1896,7 +1896,7 @@  static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,
 			/* In partial page write we don't update bufferram */
 			onenand_update_bufferram(mtd, to, !ret && !subpage);
 			if (ret) {
-				printk(KERN_ERR "onenand_write_ops_nolock: write filaed %d\n", ret);
+				printk(KERN_ERR "onenand_write_ops_nolock: write failed %d\n", ret);
 				break;
 			}
 
@@ -2192,7 +2192,7 @@  static int onenand_erase(struct mtd_info *mtd, struct erase_info *instr)
 	/* Grab the lock and see if the device is available */
 	onenand_get_device(mtd, FL_ERASING);
 
-	/* Loop throught the pages */
+	/* Loop through the blocks */
 	instr->state = MTD_ERASING;
 
 	while (len) {
@@ -2319,7 +2319,7 @@  static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs)
         if (bbm->bbt)
                 bbm->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
 
-        /* We write two bytes, so we dont have to mess with 16 bit access */
+        /* We write two bytes, so we don't have to mess with 16-bit access */
         ofs += mtd->oobsize + (bbm->badblockpos & ~0x01);
 	/* FIXME : What to do when marking SLC block in partition
 	 * 	   with MLC erasesize? For now, it is not advisable to
@@ -2548,7 +2548,7 @@  static void onenand_unlock_all(struct mtd_info *mtd)
 
 #ifdef CONFIG_MTD_ONENAND_OTP
 
-/* Interal OTP operation */
+/* Internal OTP operation */
 typedef int (*otp_op_t)(struct mtd_info *mtd, loff_t form, size_t len,
 		size_t *retlen, u_char *buf);
 
@@ -2912,7 +2912,7 @@  static void onenand_check_features(struct mtd_info *mtd)
 		this->options |= ONENAND_HAS_2PLANE;
 
 	case ONENAND_DEVICE_DENSITY_2Gb:
-		/* 2Gb DDP don't have 2 plane */
+		/* 2Gb DDP does not have 2 plane */
 		if (!ONENAND_IS_DDP(this))
 			this->options |= ONENAND_HAS_2PLANE;
 		this->options |= ONENAND_HAS_UNLOCK_ALL;
@@ -3374,7 +3374,7 @@  static int onenand_probe(struct mtd_info *mtd)
 	/* It's real page size */
 	this->writesize = mtd->writesize;
 
-	/* REVIST: Multichip handling */
+	/* REVISIT: Multichip handling */
 
 	if (FLEXONENAND(this))
 		flexonenand_get_size(mtd);