From patchwork Sat Sep 28 03:24:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 278707 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 1A3022C0335 for ; Sat, 28 Sep 2013 13:33:11 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 621264A096; Sat, 28 Sep 2013 05:33:09 +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 WV1co9hDkT5N; Sat, 28 Sep 2013 05:33:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BE9E14A0AF; Sat, 28 Sep 2013 05:33:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4057A4A092 for ; Sat, 28 Sep 2013 05:32:46 +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 o4nOLS-00T4w for ; Sat, 28 Sep 2013 05:32:38 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-ye0-f170.google.com (mail-ye0-f170.google.com [209.85.213.170]) by theia.denx.de (Postfix) with ESMTPS id 5FF454A090 for ; Sat, 28 Sep 2013 05:32:15 +0200 (CEST) Received: by mail-ye0-f170.google.com with SMTP id r4so1134025yen.15 for ; Fri, 27 Sep 2013 20:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization; bh=Ia6wgowd9FQq0EmAsGAD4Y7gVEuoDADroLfRXVVYJ/E=; b=KuG3lEvv6GXfqxoAgqafPNubIj5nAgli8YxN4c7tHo6B63euzo47Rytjv6LMfkhAhR p2WxWaIWoIbiy3RtKX3KxutjPtcMPZI1TmAJYvQB2XvWxVXgCWp9HfD3EGM6Umj1U2ag 1ZdX4S/CQrHLhI50VpnfoVhWhuCR2G6z8SRD8iil+/brzT9QUejkOVnyo1Ldh3V+mizz 7iSucZctn1WSZe2bTgaZSxX88rB6VHO4pvWKEQoUQniMrpixlvkqb45LfqPtlB2xhJc4 F119FulrJScmp1F+i0jGoJbO4OYBePgYAmEZqquSZlWJAOZcXuDX+PAoyj82qSL8kXhG XWlQ== X-Received: by 10.236.148.138 with SMTP id v10mr10195254yhj.27.1380338677595; Fri, 27 Sep 2013 20:24:37 -0700 (PDT) Received: from nano.lab.ossystems.com.br ([177.194.209.11]) by mx.google.com with ESMTPSA id v45sm15980678yha.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 20:24:37 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Date: Sat, 28 Sep 2013 00:24:12 -0300 Message-Id: <1380338659-7896-1-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 1.8.4.rc3 Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [U-Boot] [PATCH 1/7] mtd: Fix function description in part_validate comment X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 The part_validate comment had a wrong description of the actions it does and referenced to non-existent functions while in fact it calls 'part_validate_eraseblock()'. Signed-off-by: Otavio Salvador --- common/cmd_mtdparts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index 3023479..0104285 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c @@ -381,10 +381,10 @@ static int part_validate_eraseblock(struct mtdids *id, struct part_info *part) /** - * Performs sanity check for supplied partition. Offset and size are verified - * to be within valid range. Partition type is checked and either - * parts_validate_nor() or parts_validate_nand() is called with the argument - * of part. + * Performs sanity check for supplied partition. Offset and size are + * verified to be within valid range. Partition type is checked and + * either part_validate_eraseblock() is called with the argument of + * part. * * @param id of the parent device * @param part partition to validate