Patchwork [U-Boot,1/4,v3] nand_base: trivial: fix comment read/write comment

login
register
mail settings
Submitter Ben Gardiner
Date May 24, 2011, 2:18 p.m.
Message ID <344b1cddfcd7bd0a686a239fd880492c9d8a4cb9.1306246651.git.bengardiner@nanometrics.ca>
Download mbox | patch
Permalink /patch/97162/
State Accepted
Headers show

Comments

Ben Gardiner - May 24, 2011, 2:18 p.m.
Replace an incorrect 'read' with 'write' in a comment.

Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
Acked-by: Detlev Zundel <dzu@denx.de>

---
Changes since v2:
 * added Detlev's Acked-by
Changes since v1:
 * rebased to HEAD of git://git.denx.de/u-boot-nand-flash.git : ff7b4a0
   ("env_nand: zero-initialize variable nand_erase_options")
---
 drivers/mtd/nand/nand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Scott Wood - June 6, 2011, 9:32 p.m.
On Tue, May 24, 2011 at 10:18:34AM -0400, Ben Gardiner wrote:
> Replace an incorrect 'read' with 'write' in a comment.
> 
> Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
> Acked-by: Detlev Zundel <dzu@denx.de>
> 
> ---
> Changes since v2:
>  * added Detlev's Acked-by
> Changes since v1:
>  * rebased to HEAD of git://git.denx.de/u-boot-nand-flash.git : ff7b4a0
>    ("env_nand: zero-initialize variable nand_erase_options")
> ---
>  drivers/mtd/nand/nand_base.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied to u-boot-nand-flash next

-Scott

Patch

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 52f8575..1a95a91 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -1950,7 +1950,7 @@  static int nand_write(struct mtd_info *mtd, loff_t to, size_t len,
 	struct nand_chip *chip = mtd->priv;
 	int ret;
 
-	/* Do not allow reads past end of device */
+	/* Do not allow writes past end of device */
 	if ((to + len) > mtd->size)
 		return -EINVAL;
 	if (!len)