mtd: rawnand: ams-delta: Push inversion handling to gpiolib
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 12 Feb 2020 00:39:21 +0000 (01:39 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 9 Mar 2020 13:51:01 +0000 (14:51 +0100)
commit241008ed0bb5955e52e06d7270e87c974bbaadd6
tree3d25a052e996b45fc8de003acdd6c07170d047aa
parent2cef3d4cf4498e260f5bc2d5fab850e4a52be382
mtd: rawnand: ams-delta: Push inversion handling to gpiolib

Let platforms take care of declaring correct GPIO pin polarity so we
can just ask a GPIO line to be asserted or deasserted and gpiolib deals
with the rest depending on how the platform is configured.

Inspired by similar changes to regulator drivers by Linus Walleij
<linus.walleij@linaro.org>, thanks!

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200212003929.6682-7-jmkrzyszt@gmail.com
arch/arm/mach-omap1/board-ams-delta.c
drivers/mtd/nand/raw/ams-delta.c