From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dzYW9-0002Ml-3H for linux-mtd@lists.infradead.org; Wed, 04 Oct 2017 01:31:05 +0000 Received: by mail-lf0-x243.google.com with SMTP id o125so7100595lfe.0 for ; Tue, 03 Oct 2017 18:30:15 -0700 (PDT) Date: Tue, 3 Oct 2017 18:13:11 -0700 From: Olof Johansson To: Linus Walleij Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, arm@kernel.org, Mike Rapoport , Frans Klaver , Gerhard Sittig , Jamie Iles Subject: Re: [PATCH] mtd: nand: gpio: Convert to use GPIO descriptors Message-ID: <20171004011311.rn3plqb4es5hcupa@localhost> References: <20170924173912.9199-1-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170924173912.9199-1-linus.walleij@linaro.org> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, Sep 24, 2017 at 07:39:12PM +0200, Linus Walleij wrote: > There is exactly one board in the kernel that defines platform data > for the GPIO NAND driver. > > Use the feature to provide a lookup table for the GPIOs in the board > file so we can convert the driver as a whole to just use GPIO > descriptors. > > After this we can cut the use of and use the GPIO > descriptor management from alone to grab and use > the GPIOs used in the driver. > > I also created a local struct device *dev in the probe() function > because I was getting annoyed with all the &pdev->dev dereferencing. > > Cc: arm@kernel.org > Cc: Mike Rapoport > Cc: Frans Klaver > Cc: Gerhard Sittig > Cc: Jamie Iles > Signed-off-by: Linus Walleij > --- > ARM SoC folks: Please ACK this so it can be merged through the MTD > subsystem. Acked-by: Olof Johansson -Olof