[PATCH] mtd: nand: gpio: Convert to use GPIO descriptors
Jamie Iles
jamie.iles at oracle.com
Mon Sep 25 01:58:31 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>
Acked-by: Jamie Iles <jamie.iles at oracle.com>
More information about the linux-mtd
mailing list