diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-17 17:03:45 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-18 16:05:31 +0300 |
commit | de6926f307e7ff605f3e37f11a4b3cc20c85c365 (patch) | |
tree | 4268f887e9355b68af2c39f24827e99f53ae5e42 /drivers/spi/spi-pxa2xx.h | |
parent | 778c12e69481d544e6fcfa45b23ae3c5379b5a02 (diff) | |
download | linux-de6926f307e7ff605f3e37f11a4b3cc20c85c365.tar.xz |
spi: pxa2xx: Switch to use SPI core GPIO (legacy) CS handling
SPI core has been already providing the GPIO CS handling. Use it.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517140351.901-4-andriy.shevchenko@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 | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index 672dfd4863cc..a91fe6edb275 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -62,19 +62,17 @@ struct chip_data { u32 dds_rate; u32 timeout; u8 n_bytes; + u8 enable_dma; u32 dma_burst_size; - u32 threshold; u32 dma_threshold; + u32 threshold; u16 lpss_rx_threshold; u16 lpss_tx_threshold; - u8 enable_dma; - union { - struct gpio_desc *gpiod_cs; - unsigned int frm; - }; - int gpio_cs_inverted; + int (*write)(struct driver_data *drv_data); int (*read)(struct driver_data *drv_data); + + unsigned int frm; void (*cs_control)(u32 command); }; |