diff options
Diffstat (limited to 'include/linux/spi/spi_bitbang.h')
| -rw-r--r-- | include/linux/spi/spi_bitbang.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/spi/spi_bitbang.h b/include/linux/spi/spi_bitbang.h index 51d8c060e513..b7e021b274dc 100644 --- a/include/linux/spi/spi_bitbang.h +++ b/include/linux/spi/spi_bitbang.h | |||
| @@ -8,7 +8,7 @@ struct spi_bitbang { | |||
| 8 | struct mutex lock; | 8 | struct mutex lock; |
| 9 | u8 busy; | 9 | u8 busy; |
| 10 | u8 use_dma; | 10 | u8 use_dma; |
| 11 | u8 flags; /* extra spi->mode support */ | 11 | u16 flags; /* extra spi->mode support */ |
| 12 | 12 | ||
| 13 | struct spi_master *master; | 13 | struct spi_master *master; |
| 14 | 14 | ||
| @@ -30,7 +30,8 @@ struct spi_bitbang { | |||
| 30 | /* txrx_word[SPI_MODE_*]() just looks like a shift register */ | 30 | /* txrx_word[SPI_MODE_*]() just looks like a shift register */ |
| 31 | u32 (*txrx_word[4])(struct spi_device *spi, | 31 | u32 (*txrx_word[4])(struct spi_device *spi, |
| 32 | unsigned nsecs, | 32 | unsigned nsecs, |
| 33 | u32 word, u8 bits); | 33 | u32 word, u8 bits, unsigned flags); |
| 34 | int (*set_line_direction)(struct spi_device *spi, bool output); | ||
| 34 | }; | 35 | }; |
| 35 | 36 | ||
| 36 | /* you can call these default bitbang->master methods from your custom | 37 | /* you can call these default bitbang->master methods from your custom |
