spi: img-spfi: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Jun 2020 20:14:22 +0000 (22:14 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 22:21:29 +0000 (23:21 +0100)
commit27e23ca806c6fe08613330bb35e1f502ffd2d3a8
tree98171c5c2f799c5ebb6d4b4c819e65174e563ac0
parenta2f234fcabd0ab25399741668ea62bc4c3b40191
spi: img-spfi: Convert to use GPIO descriptors

This converts the IMG SPFI SPI driver to use GPIO descriptors
as obtained from the core instead of GPIO numbers.

The driver was already relying on the core code to look up
the GPIO numbers from the device tree and allocate memory for
storing state etc. By moving to use descriptors handled by
the core we can delete the setup/cleanup functions and
the device state handler that were only dealing with this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Cc: Ionela Voinescu <ionela.voinescu@imgtec.com>
Cc: Sifan Naeem <sifan.naeem@imgtec.com>
Link: https://lore.kernel.org/r/20200625201422.208640-1-linus.walleij@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-img-spfi.c