From patchwork Tue Dec 18 21:11:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Cordahi X-Patchwork-Id: 207212 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [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 63B342C008C for ; Wed, 19 Dec 2012 08:15:36 +1100 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tl4Ur-0005eH-L1; Tue, 18 Dec 2012 21:14:41 +0000 Received: from mail-ie0-f181.google.com ([209.85.223.181]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tl4Up-0005dW-Vr for linux-mtd@lists.infradead.org; Tue, 18 Dec 2012 21:14:40 +0000 Received: by mail-ie0-f181.google.com with SMTP id 16so1600839iea.26 for ; Tue, 18 Dec 2012 13:14:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nanometrics.ca; s=google; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=+IvdEPGhQgNsDZBuxYfQ4g9gtTE8Uf4ZduUY79GagoA=; b=isULwje3+HLPV92QOGnURmDUQRPPfMtInNzANDH56mvwID7wDPYJl6ahV1GPQgzn03 wRf0MLRf9VFBcbPvyaSCDzvzsNzf7mP/emovO4odi4gaYjbZtsh5Bnv+k4HGSrIs/DxJ uvXdL4ZZgD4bnGjCGlBsIia8+RwAqIliEjCVY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=+IvdEPGhQgNsDZBuxYfQ4g9gtTE8Uf4ZduUY79GagoA=; b=HQA0ddVRH5BKY9qMzsi3EYEczwJc3xv4EYYPbHlLpXAg5UBAIymD/AFesEEvR4Uzyu eoAkNbffe3kTTKrXnHqZHEPxxgVaFfw/M1BV3t/MTD/qBmTwvM9NHuN+DvsFgVOyqDVK 9MnIpL0j8a7IjKqeO8mYQDBFz+qHzv6wcHUxFd9AuzCxZKr+2YX+YQ8FOwbO6w9tegFo xSR6/t2sy4TzYpD9UlZSWifyXfsAdbRi6ocrKl85pJBe5ShRjSIaK5fpsMzKoW4sBNl3 yInJdOwHZb7YjSqdfhaNjoljuu/alznTp+U6R+0J103YS4DPwUXN7bOFY3N8c4QKHWsp LtGQ== X-Received: by 10.42.212.8 with SMTP id gq8mr3938652icb.48.1355865277922; Tue, 18 Dec 2012 13:14:37 -0800 (PST) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id c3sm9268539igj.1.2012.12.18.13.14.35 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 18 Dec 2012 13:14:37 -0800 (PST) From: Christopher Cordahi To: David Woodhouse Subject: [PATCH 2/2] mtd: cmdlinepart: update /proc/mtd comment Date: Tue, 18 Dec 2012 16:11:52 -0500 Message-Id: X-Mailer: git-send-email 1.7.1 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmRLDGtYY13vfWzu4F3rSVtqeTyBvUyh6sn3YJjXn8XH7z1dNKPFsCLrhb4v2kqY8qpIglF X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121218_161440_091671_46573610 X-CRM114-Status: GOOD ( 14.67 ) 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.223.181 listed in list.dnswl.org] -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: Philip Rakity , Artem Bityutskiy , Huang Shijie , Linux MTD mailing list , Shmulik Ladkani , Christopher Cordahi , Brian Norris , Huang Shijie 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 /proc/mtd doesn't contain the mtd-id of the device, but the part name from the command line. This corrects what I believe is an obsolete comment from commit a0ee24a03b1c06813c814b9f70946c8984752f01. Signed-off-by: Christopher Cordahi Cc: Philip Rakity --- drivers/mtd/cmdlinepart.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/cmdlinepart.c b/drivers/mtd/cmdlinepart.c index 8d4a166..721d05c 100644 --- a/drivers/mtd/cmdlinepart.c +++ b/drivers/mtd/cmdlinepart.c @@ -22,7 +22,6 @@ * * mtdparts=[; := :[,] - * where is the name from the "cat /proc/mtd" command * := [@][][ro][lk] * := unique name used in mapping driver/device (mtd->name) * := standard linux memsize OR "-" to denote all remaining space @@ -32,6 +31,7 @@ * if omitted the part will immediately follow the previous part * or 0 if the first part * := '(' NAME ')' + * NAME will appear in /proc/mtd * * and can be specified such that the parts are out of order * in physical memory and may even overlap.