]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a4a687755a2eb3eb3f04d68204163a97d627b5b
tree79f0d048d907797c2a3c16171c24194a4fa51b19
parent3cd88729fb17ed1b5503ceec724add2a05a93bae
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