From patchwork Tue May 24 14:18:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 97162 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 566ABB6F9C for ; Wed, 25 May 2011 00:19:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 25E412817D; Tue, 24 May 2011 16:19:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id khuhvkX7Gqtv; Tue, 24 May 2011 16:19:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 28F4928173; Tue, 24 May 2011 16:18:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7469A28139 for ; Tue, 24 May 2011 16:18:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KVpNmDR4VViA for ; Tue, 24 May 2011 16:18:48 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na3sys009aog113.obsmtp.com (na3sys009aog113.obsmtp.com [74.125.149.209]) by theia.denx.de (Postfix) with ESMTPS id 0F2612813D for ; Tue, 24 May 2011 16:18:46 +0200 (CEST) Received: from mail-gw0-f51.google.com ([74.125.83.51]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKTdu+RGlEx+fHZPmg8665bzOtPru5odRC@postini.com; Tue, 24 May 2011 07:18:48 PDT Received: by mail-gw0-f51.google.com with SMTP id 17so2881966gwj.38 for ; Tue, 24 May 2011 07:18:44 -0700 (PDT) Received: by 10.236.185.69 with SMTP id t45mr4850429yhm.56.1306246724759; Tue, 24 May 2011 07:18:44 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id h63sm3216158yhm.86.2011.05.24.07.18.39 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 May 2011 07:18:43 -0700 (PDT) From: Ben Gardiner To: Scott Wood , u-boot@lists.denx.de Date: Tue, 24 May 2011 10:18:34 -0400 Message-Id: <344b1cddfcd7bd0a686a239fd880492c9d8a4cb9.1306246651.git.bengardiner@nanometrics.ca> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: References: Subject: [U-Boot] [PATCH 1/4] [v3] nand_base: trivial: fix comment read/write comment X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Replace an incorrect 'read' with 'write' in a comment. Signed-off-by: Ben Gardiner Acked-by: Detlev Zundel --- 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(-) 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)