From patchwork Fri Dec 20 16:02:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang Shijie X-Patchwork-Id: 3390021 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3E43DC0D4A for ; Fri, 20 Dec 2013 16:40:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 28799206E6 for ; Fri, 20 Dec 2013 16:40:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BB1E020622 for ; Fri, 20 Dec 2013 16:40:44 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu2ZT-0000iS-Dp; Fri, 20 Dec 2013 16:05:05 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu2Yu-000870-V5; Fri, 20 Dec 2013 16:04:28 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vu2Xq-0007xV-Qr; Fri, 20 Dec 2013 16:03:24 +0000 Received: by mail-pa0-f50.google.com with SMTP id kp14so929338pab.9 for ; Fri, 20 Dec 2013 08:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/rkM5GpjTZlF7pbSOBWddyXAjhDz6Fhgc7/oEyk83+s=; b=i+QcVC4/qiPS6Rt08xK0Y2y6kwen/B6GfMkr5mERvNtt+bmYimfLrbD3c1jkE0W/at PIBuGgW1SC6lQwZMVwL2RCzA/yRPBkni34nahiWtx1eGtziqC7/GSf5q1fR55oHPPDoX 9bxUOo2mwMvAiPpDTZLRFYvWYvOFQptUFYZnb4ARKpXEKdnYnO3QCdpqsNPTR2Iasgg7 oQwe8zp8XuORQURj8FoOOC3FYtvr/GTcdGWCq04gQpKvKoK+Rc8+5H+IrvrsBeZsys84 pqsFHaPQJLFXMG3iO1OHGAQpcVg3FQWej2L+bidf9Z0yAP8wvqEUKw9B4XtbejqGI1WX vdOA== X-Received: by 10.68.197.165 with SMTP id iv5mr9514307pbc.150.1387555381270; Fri, 20 Dec 2013 08:03:01 -0800 (PST) Received: from localhost.localdomain ([139.226.110.218]) by mx.google.com with ESMTPSA id ka3sm15338993pbc.32.2013.12.20.08.02.57 for (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Fri, 20 Dec 2013 08:03:00 -0800 (PST) From: Huang Shijie To: dwmw2@infradead.org Subject: [PATCH 4/4] mtd: nand: remove the NAND_MAX_PAGESIZE/NAND_MAX_OOBSIZE Date: Sat, 21 Dec 2013 00:02:30 +0800 Message-Id: <1387555350-989-5-git-send-email-shijie8@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1387555350-989-1-git-send-email-shijie8@gmail.com> References: <1387555350-989-1-git-send-email-shijie8@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131220_110323_007583_0C2F607A X-CRM114-Status: UNSURE ( 8.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) Cc: s.hauer@pengutronix.de, akinobu.mita@gmail.com, josh@joshtriplett.org, linux-mtd@lists.infradead.org, computersforpeace@gmail.com, Huang Shijie , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no reference to these two macros now. Just remove them. Signed-off-by: Huang Shijie --- include/linux/mtd/nand.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index 4bbcaba..863609e 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -52,14 +52,6 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); #define NAND_MAX_CHIPS 8 /* - * This constant declares the max. oobsize / page, which - * is supported now. If you add a chip with bigger oobsize/page - * adjust this accordingly. - */ -#define NAND_MAX_OOBSIZE 744 -#define NAND_MAX_PAGESIZE 8192 - -/* * Constants for hardware specific CLE/ALE/NCE function * * These are bits which can be or'ed to set/clear multiple