[PATCH] mtd: nand: gpio: Convert to use GPIO descriptors

Olof Johansson olof at lixom.net
Tue Oct 3 18:13:11 PDT 2017


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 <linux/of_gpio.h> and use the GPIO
> descriptor management from <linux/gpio/consumer.h> 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 at kernel.org
> Cc: Mike Rapoport <rppt at linux.vnet.ibm.com>
> Cc: Frans Klaver <fransklaver at gmail.com>
> Cc: Gerhard Sittig <gsi at denx.de>
> Cc: Jamie Iles <jamie.iles at oracle.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
> ---
> ARM SoC folks: Please ACK this so it can be merged through the MTD
> subsystem.

Acked-by: Olof Johansson <olof at lixom.net>


-Olof




More information about the linux-arm-kernel mailing list