spi: sh-msiof: Convert to use GPIO descriptors
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 3 Apr 2019 15:08:52 +0000 (17:08 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Apr 2019 06:00:47 +0000 (13:00 +0700)
commit9fda6693335cd51b0a74cffaac266c83439f7efe
tree0fc3b0ee927125bb11444fb6f37728666294c95c
parent1a8fa5166ec53927e2c978bce9a107c9f8d5bf60
spi: sh-msiof: Convert to use GPIO descriptors

Convert GPIO chip selects in the Renesas MSIOF SPI driver from legacy
GPIO numbers to GPIO descriptors.

Notes:
  - The board file for the SH7724-based Ecovec24 development board now
    registers a GPIO descriptor lookup, instead of passing a GPIO number
    through controller_data,
  - sh_msiof_get_cs_gpios() must release all GPIOs, else
    spi_get_gpio_descs() cannot claim them during SPI controller
    registration.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/sh/boards/mach-ecovec24/setup.c
drivers/spi/spi-sh-msiof.c