From patchwork Tue Sep 11 13:50:54 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 183116 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CDCCF2C0089 for ; Tue, 11 Sep 2012 23:52:20 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TBQrt-0000f4-OM; Tue, 11 Sep 2012 13:51:09 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TBQrr-0000e2-26 for linux-mtd@lists.infradead.org; Tue, 11 Sep 2012 13:51:07 +0000 Received: by wibhq4 with SMTP id hq4so2683037wib.0 for ; Tue, 11 Sep 2012 06:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=MS+YhWIobqrJlynorH8MKv7wdwAoJJImAU76hLKdBXE=; b=h0kNojK0Q/v8Knk8Y7zaaX/d1gqhgnSX2uVYT0pTEcDUOpRIimTD4VFZMaBXe/NtsS nKt6N344/0IR+KmqLk5qC9daowrl/E1Jyf2tEi9Pq/2NyPomgm2RveDbK7QxpeMAx/oq SXk6wej3NhPK/Z7+ZwEPuaoz5fYz4W3EKc83gQC2pIQEtYhfK152VW0fugJxyulDxZJy 6UxVocO//IcrRIBSoqoVjXlaXidMHkasnX+9ApgeHC3VF0C5kKkvHcKgEfFuqfoa6Hq+ sRUusLSvKfV5SUd60kHBoO34/72L4iK5an3RwUqXGJP3SXKT/1X0ADgCxRSExXXwAPpH iTSQ== Received: by 10.180.94.164 with SMTP id dd4mr25391020wib.1.1347371464680; Tue, 11 Sep 2012 06:51:04 -0700 (PDT) Received: from localhost.localdomain (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPS id hv8sm2989850wib.0.2012.09.11.06.51.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 06:51:03 -0700 (PDT) From: Richard Genoud To: David Woodhouse Subject: [PATCH] NAND BBT: use NAND_BBT_SCAN_MAXBLOCKS Date: Tue, 11 Sep 2012 15:50:54 +0200 Message-Id: <1347371454-17107-1-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.7.2.5 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.171 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richard.genoud[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Richard Genoud , linux-mtd@lists.infradead.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In nand_bbt.c, a hardcoded value was used instead of the define meant for that, so we use the define. There's no functionnal change. Signed-off-by: Richard Genoud Acked-by: Brian Norris --- drivers/mtd/nand/nand_bbt.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 30d1319..741ecf7 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c @@ -62,6 +62,7 @@ #include #include #include +#include #include #include #include @@ -1260,7 +1261,7 @@ static struct nand_bbt_descr bbt_main_descr = { .offs = 8, .len = 4, .veroffs = 12, - .maxblocks = 4, + .maxblocks = NAND_BBT_SCAN_MAXBLOCKS, .pattern = bbt_pattern }; @@ -1270,7 +1271,7 @@ static struct nand_bbt_descr bbt_mirror_descr = { .offs = 8, .len = 4, .veroffs = 12, - .maxblocks = 4, + .maxblocks = NAND_BBT_SCAN_MAXBLOCKS, .pattern = mirror_pattern }; @@ -1280,7 +1281,7 @@ static struct nand_bbt_descr bbt_main_no_bbt_descr = { | NAND_BBT_NO_OOB, .len = 4, .veroffs = 4, - .maxblocks = 4, + .maxblocks = NAND_BBT_SCAN_MAXBLOCKS, .pattern = bbt_pattern }; @@ -1290,7 +1291,7 @@ static struct nand_bbt_descr bbt_mirror_no_bbt_descr = { | NAND_BBT_NO_OOB, .len = 4, .veroffs = 4, - .maxblocks = 4, + .maxblocks = NAND_BBT_SCAN_MAXBLOCKS, .pattern = mirror_pattern };