]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e1eb0783e1f7a6fc92cfcc97350550ea2b8131f
tree98171c5c2f799c5ebb6d4b4c819e65174e563ac0
parent1a4a687755a2eb3eb3f04d68204163a97d627b5b
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