]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: ams-delta: use GPIO lookup table
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 19 Sep 2018 22:17:29 +0000 (00:17 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commitb5a23dea2668b410817fa53bdc5553c45c1f63a5
tree3b8f40dedd316c37922b000b3b65f73f79cb03a7
parent171d527c46da23c4832a6d35e9758132ac4b1902
mtd: rawnand: ams-delta: use GPIO lookup table

Now as Amstrad Delta board - the only user of this driver - provides
GPIO lookup tables, switch from GPIO numbers to GPIO descriptors and
use the table to locate required GPIO pins.

Declare static variables for storing GPIO descriptors and replace
gpio_ function calls with their gpiod_ equivalents.

Pin naming used by the driver should be followed while respective GPIO
lookup table is initialized by a board init code.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ams-delta.c