diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/spi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index b354dcbed55b..31a5b0ee93ec 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -347,6 +347,8 @@ struct spi_master { | |||
| 347 | #define SPI_MASTER_HALF_DUPLEX BIT(0) /* can't do full duplex */ | 347 | #define SPI_MASTER_HALF_DUPLEX BIT(0) /* can't do full duplex */ |
| 348 | #define SPI_MASTER_NO_RX BIT(1) /* can't do buffer read */ | 348 | #define SPI_MASTER_NO_RX BIT(1) /* can't do buffer read */ |
| 349 | #define SPI_MASTER_NO_TX BIT(2) /* can't do buffer write */ | 349 | #define SPI_MASTER_NO_TX BIT(2) /* can't do buffer write */ |
| 350 | #define SPI_MASTER_MUST_RX BIT(3) /* requires rx */ | ||
| 351 | #define SPI_MASTER_MUST_TX BIT(4) /* requires tx */ | ||
| 350 | 352 | ||
| 351 | /* lock and mutex for SPI bus locking */ | 353 | /* lock and mutex for SPI bus locking */ |
| 352 | spinlock_t bus_lock_spinlock; | 354 | spinlock_t bus_lock_spinlock; |
| @@ -443,6 +445,10 @@ struct spi_master { | |||
| 443 | /* DMA channels for use with core dmaengine helpers */ | 445 | /* DMA channels for use with core dmaengine helpers */ |
| 444 | struct dma_chan *dma_tx; | 446 | struct dma_chan *dma_tx; |
| 445 | struct dma_chan *dma_rx; | 447 | struct dma_chan *dma_rx; |
| 448 | |||
| 449 | /* dummy data for full duplex devices */ | ||
| 450 | void *dummy_rx; | ||
| 451 | void *dummy_tx; | ||
| 446 | }; | 452 | }; |
| 447 | 453 | ||
| 448 | static inline void *spi_master_get_devdata(struct spi_master *master) | 454 | static inline void *spi_master_get_devdata(struct spi_master *master) |
