From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-xd43.google.com ([2607:f8b0:4864:20::d43]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g30xP-0003bA-5F for linux-mtd@lists.infradead.org; Thu, 20 Sep 2018 15:33:32 +0000 Received: by mail-io1-xd43.google.com with SMTP id y10-v6so7734967ioa.10 for ; Thu, 20 Sep 2018 08:33:20 -0700 (PDT) MIME-Version: 1.0 References: <20180909225605.16463-3-jmkrzyszt@gmail.com> <20180919221729.21179-1-jmkrzyszt@gmail.com> In-Reply-To: <20180919221729.21179-1-jmkrzyszt@gmail.com> From: Linus Walleij Date: Thu, 20 Sep 2018 08:33:07 -0700 Message-ID: Subject: Re: [PATCH v5] mtd: rawnand: ams-delta: use GPIO lookup table To: Janusz Krzysztofik Cc: =?UTF-8?Q?Miqu=C3=A8l_Raynal?= , ext Tony Lindgren , Aaro Koskinen , Boris Brezillon , Richard Weinberger , David Woodhouse , Brian Norris , Mark Vasut , Linux-OMAP , linux-mtd@lists.infradead.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Sep 19, 2018 at 3:17 PM Janusz Krzysztofik wrote: > Now as Amstrad Delta board - the only user of this driver - provides > GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and > use the table to locate required GPIO pins. > > Declare static variables for storing GPIO descriptors and replace > gpio_ function calls with their gpiod_ equivalents. > > Pin naming used by the driver should be followed while respective GPIO > lookup table is initialized by a board init code. > > Signed-off-by: Janusz Krzysztofik > Acked-by: Boris Brezillon > Acked-by: Miquel Raynal > --- > Changelog: > v5: > - rebased on nand/next > - resubmitted to linux-mtd as a stand-alone patch Reviewed-by: Linus Walleij Yours, Linus Walleij