spi: npcm-pspi: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Jun 2020 22:57:59 +0000 (00:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 22:21:28 +0000 (23:21 +0100)
commita2f234fcabd0ab25399741668ea62bc4c3b40191
tree79f0d048d907797c2a3c16171c24194a4fa51b19
parentd40f0b6f2e21f2400ae8b1b120d11877d9ffd8ec
spi: npcm-pspi: Convert to use GPIO descriptors

The Nuvoton PSPI driver already uses the core to handle GPIO
chip selects but is using the old GPIO number method and
retrieveing the GPIOs in the probe() call.

Switch it over to using GPIO descriptors saving a bunch of
code and modernizing it.

Compile tested med ARMv7 multiplatform config augmented
with the Nuvoton arch and this driver.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Tomer Maimon <tmaimon77@gmail.com>
Link: https://lore.kernel.org/r/20200625225759.273911-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-npcm-pspi.c