Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1047239imm; Thu, 6 Sep 2018 14:30:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFPo55aWIjWp9vwemseWFGpXrT9ddmE1nFFVkRIex4HX7qBgspJ2g0ITGpYsZrLq9Fm6CU X-Received: by 2002:a17:902:a405:: with SMTP id p5-v6mr4784048plq.222.1536269424639; Thu, 06 Sep 2018 14:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536269424; cv=none; d=google.com; s=arc-20160816; b=jBhLLHIAvmFVxu0QBYTXKgD6KbiAn7YE5S44gf2z28z4QdVtwrITJpjQN2ce/tcII0 5bfHwKcQnCa71+LkSdZwHEcKrOWax9Qnh7aZkqay55hzwN5w9958xgh3x7SnZPyEviq2 PirCUZ/CEtBMmGYnU3MAryLcLByE9iHdFXBEKKHthmJZXz18lDAwfVFTJH7aKRDuNKJ4 6uyFr4Pcj64nfQzgk7g1/wzOF0cpbXWTopobsQcD++md4SrSmsE1FVUnNgfCdjUklQP/ AVS0ABxS8qe4pjpPiQsTOk+0aYX4BLACwItL3BXl/74uECfponsB3+QIvb+NYTgFNR7l 9yUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=OW4sBRxiO2XSO2RZ2XdIv04KjNw4A38MLX6k5XH9HFQ=; b=ZUQFksTVgQXSOm7SFBlMJWkS4jusHbzJ0o919HJXwIhjMyRrqFUQUGYGAf0dcTWaWz n5QlPSTs/8n0v6w4EuPnmkZNHTDNrnNVOfMvaDqjjZkW3K2zLfxyLivQFhfIzUqtkpyQ FAGb2XPpX6YC5ZUgKpVv5DDYWMZAKceaX8CC8iAcjlOU5BAQ+5YsoyuMlRExPL8uONCa R11kWnCHBqDQ3bICUINRfRBV84r/kLCDjI7XA0EHpaS77Oa8ztCJW+Os//OzqyR+OaZH m7irQ3GgQrlqPpheGZj04uBzvVnMSh7VXct/P0YbgykRhMT2DPUKA6lUgpG0Sc+9mokQ o9gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f91-v6si5976080plf.376.2018.09.06.14.30.09; Thu, 06 Sep 2018 14:30:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730062AbeIGBTv (ORCPT + 99 others); Thu, 6 Sep 2018 21:19:51 -0400 Received: from mail.bootlin.com ([62.4.15.54]:41410 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbeIGBTv (ORCPT ); Thu, 6 Sep 2018 21:19:51 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 826962072F; Thu, 6 Sep 2018 22:42:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (unknown [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 51491207AD; Thu, 6 Sep 2018 22:42:15 +0200 (CEST) Date: Thu, 6 Sep 2018 22:42:13 +0200 From: Boris Brezillon To: Marcel Ziswiler Cc: linux-mtd@lists.infradead.org, Marcel Ziswiler , Miquel Raynal , linux-kernel@vger.kernel.org, Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse Subject: Re: [PATCH 1/2] mtd: nand: reorder nand manufacturer ids Message-ID: <20180906224213.7b162cbb@bbrezillon> In-Reply-To: <20180906084922.14845-1-marcel@ziswiler.com> References: <20180906084922.14845-1-marcel@ziswiler.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Sep 2018 10:49:21 +0200 Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Reorder NAND manufacturer ids for clarity. > > Signed-off-by: Marcel Ziswiler > > --- > > drivers/mtd/nand/raw/nand_ids.c | 20 ++++++++++---------- > include/linux/mtd/rawnand.h | 8 ++++---- > 2 files changed, 14 insertions(+), 14 deletions(-) > > diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c > index 5423c3bb388e..0851cd86bf19 100644 > --- a/drivers/mtd/nand/raw/nand_ids.c > +++ b/drivers/mtd/nand/raw/nand_ids.c > @@ -169,21 +169,21 @@ struct nand_flash_dev nand_flash_ids[] = { > > /* Manufacturer IDs */ > static const struct nand_manufacturer nand_manufacturers[] = { > - {NAND_MFR_TOSHIBA, "Toshiba", &toshiba_nand_manuf_ops}, > + {NAND_MFR_AMD, "AMD/Spansion", &amd_nand_manuf_ops}, > + {NAND_MFR_ATO, "ATO"}, > + {NAND_MFR_EON, "Eon"}, > {NAND_MFR_ESMT, "ESMT"}, > - {NAND_MFR_SAMSUNG, "Samsung", &samsung_nand_manuf_ops}, > {NAND_MFR_FUJITSU, "Fujitsu"}, > - {NAND_MFR_NATIONAL, "National"}, > - {NAND_MFR_RENESAS, "Renesas"}, > - {NAND_MFR_STMICRO, "ST Micro"}, > {NAND_MFR_HYNIX, "Hynix", &hynix_nand_manuf_ops}, > - {NAND_MFR_MICRON, "Micron", µn_nand_manuf_ops}, > - {NAND_MFR_AMD, "AMD/Spansion", &amd_nand_manuf_ops}, > + {NAND_MFR_INTEL, "Intel"}, > {NAND_MFR_MACRONIX, "Macronix", ¯onix_nand_manuf_ops}, > - {NAND_MFR_EON, "Eon"}, > + {NAND_MFR_MICRON, "Micron", µn_nand_manuf_ops}, > + {NAND_MFR_NATIONAL, "National"}, > + {NAND_MFR_RENESAS, "Renesas"}, > + {NAND_MFR_SAMSUNG, "Samsung", &samsung_nand_manuf_ops}, > {NAND_MFR_SANDISK, "SanDisk"}, > - {NAND_MFR_INTEL, "Intel"}, > - {NAND_MFR_ATO, "ATO"}, > + {NAND_MFR_STMICRO, "ST Micro"}, > + {NAND_MFR_TOSHIBA, "Toshiba", &toshiba_nand_manuf_ops}, > {NAND_MFR_WINBOND, "Winbond"}, > }; > > diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h > index efb2345359bb..ca134851d211 100644 > --- a/include/linux/mtd/rawnand.h > +++ b/include/linux/mtd/rawnand.h > @@ -1541,12 +1541,12 @@ nand_manufacturer_name(const struct nand_manufacturer *manufacturer) > > extern struct nand_flash_dev nand_flash_ids[]; > > -extern const struct nand_manufacturer_ops toshiba_nand_manuf_ops; > -extern const struct nand_manufacturer_ops samsung_nand_manuf_ops; > -extern const struct nand_manufacturer_ops hynix_nand_manuf_ops; > -extern const struct nand_manufacturer_ops micron_nand_manuf_ops; > extern const struct nand_manufacturer_ops amd_nand_manuf_ops; > +extern const struct nand_manufacturer_ops hynix_nand_manuf_ops; > extern const struct nand_manufacturer_ops macronix_nand_manuf_ops; > +extern const struct nand_manufacturer_ops micron_nand_manuf_ops; > +extern const struct nand_manufacturer_ops samsung_nand_manuf_ops; > +extern const struct nand_manufacturer_ops toshiba_nand_manuf_ops; I'm okay with this kind of alphabetic reordering, but why not reordering the macro definitions too?