From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 25 Sep 2017 09:58:31 +0100 From: Jamie Iles 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: <20170925085831.mamuitnvljrek3bo@cedar> 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 Acked-by: Jamie Iles