Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbdHMHkY convert rfc822-to-8bit (ORCPT ); Sun, 13 Aug 2017 03:40:24 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:53168 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921AbdHMHkX (ORCPT ); Sun, 13 Aug 2017 03:40:23 -0400 Date: Sun, 13 Aug 2017 09:40:19 +0200 From: Boris Brezillon To: Andrea Adami Cc: linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Wolfram Sang , Lee Jones , Daniel Mack , Haojian Zhuang , Dmitry Eremin-Solenikov , Robert Jarzmik , Linus Walleij , Russell King , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 2/9] mtd: nand: sharpsl.h: support partition parser types Message-ID: <20170813094019.2fced1d1@bbrezillon> In-Reply-To: <1498681836-3765-3-git-send-email-andrea.adami@gmail.com> References: <1498681836-3765-1-git-send-email-andrea.adami@gmail.com> <1498681836-3765-3-git-send-email-andrea.adami@gmail.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 887 Lines: 26 Le Wed, 28 Jun 2017 22:30:29 +0200, Andrea Adami a écrit : Please add a commit message explaining why you're doing that. > Signed-off-by: Andrea Adami > --- > include/linux/mtd/sharpsl.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/mtd/sharpsl.h b/include/linux/mtd/sharpsl.h > index 65e91d0..c0e0be2 100644 > --- a/include/linux/mtd/sharpsl.h > +++ b/include/linux/mtd/sharpsl.h > @@ -17,4 +17,5 @@ struct sharpsl_nand_platform_data { > const struct mtd_ooblayout_ops *ecc_layout; > struct mtd_partition *partitions; > unsigned int nr_partitions; > + const char *const *types; /* names of parsers to use if any */ types is not really descriptive here. How about 'part_parsers' or something clearly reflecting the purpose of this field. BTW, try to avoid putting comments on the same line. > };