]> 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)
commit92c0e3bdc8a6baa9d35a1ee787a186cc8d7be12d
tree98171c5c2f799c5ebb6d4b4c819e65174e563ac0
parent36fa5f7fbc69495041d3a9f032b56f33fa2c5cd4
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