diff options
author | Linus Walleij | 2017-09-24 19:39:12 +0200 |
---|---|---|
committer | Boris Brezillon | 2017-10-07 11:27:48 +0200 |
commit | f3d0d8d938b4d71be1f7fb003ca2ac9250b3be4d (patch) | |
tree | 7659e78e461701800520f9de90604572b44a7a3f /drivers/watchdog/pic32-wdt.c | |
parent | dt-bindings: nand: denali: reduce the register space in the example (diff) | |
download | kernel-qcow2-linux-f3d0d8d938b4d71be1f7fb003ca2ac9250b3be4d.tar.gz kernel-qcow2-linux-f3d0d8d938b4d71be1f7fb003ca2ac9250b3be4d.tar.xz kernel-qcow2-linux-f3d0d8d938b4d71be1f7fb003ca2ac9250b3be4d.zip |
mtd: nand: gpio: Convert to use GPIO descriptors
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@kernel.org
Cc: Mike Rapoport <rppt@linux.vnet.ibm.com>
Cc: Frans Klaver <fransklaver@gmail.com>
Cc: Gerhard Sittig <gsi@denx.de>
Cc: Jamie Iles <jamie.iles@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Jamie Iles <jamie.iles@oracle.com>
Acked-by: Olof Johansson <olof@lixom.net>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/watchdog/pic32-wdt.c')
0 files changed, 0 insertions, 0 deletions