diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2017-08-03 13:40:32 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-04 12:41:55 +0100 |
commit | c18d925fca20d33c3d04e5002a883f62d699543e (patch) | |
tree | 4e57d89ebc6e5b9fc0bae8a153e2475a2f75183f /drivers/spi/spi-pxa2xx.h | |
parent | d35f2dc9a2a84f4985d8b16b47040fd6291788ad (diff) | |
download | blackbird-op-linux-c18d925fca20d33c3d04e5002a883f62d699543e.tar.gz blackbird-op-linux-c18d925fca20d33c3d04e5002a883f62d699543e.zip |
spi: pxa2xx: Convert to GPIO descriptor API where possible
We still need to request/free GPIOs passed via the legacy path of
pxa2xx_spi_chip::gpio_cs, but we can use the gpiod API otherwise.
Consistently use the descriptor API instead of the legacy one.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.h')
-rw-r--r-- | drivers/spi/spi-pxa2xx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index 2823a00a9405..94f7b0713281 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -83,7 +83,7 @@ struct chip_data { u16 lpss_tx_threshold; u8 enable_dma; union { - int gpio_cs; + struct gpio_desc *gpiod_cs; unsigned int frm; }; int gpio_cs_inverted; |