ar71xx: add v3.18 support
[openwrt.git] / target / linux / ar71xx / patches-3.18 / 431-spi-add-various-flags.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -620,6 +620,8 @@ struct spi_transfer {
4         unsigned        cs_change:1;
5         unsigned        tx_nbits:3;
6         unsigned        rx_nbits:3;
7 +       unsigned        verify:1;
8 +       unsigned        fast_write:1;
9  #define        SPI_NBITS_SINGLE        0x01 /* 1bit transfer */
10  #define        SPI_NBITS_DUAL          0x02 /* 2bits transfer */
11  #define        SPI_NBITS_QUAD          0x04 /* 4bits transfer */
12 @@ -665,6 +667,7 @@ struct spi_message {
13         struct spi_device       *spi;
14  
15         unsigned                is_dma_mapped:1;
16 +       unsigned                fast_read:1;
17  
18         /* REVISIT:  we might want a flag affecting the behavior of the
19          * last transfer ... allowing things like "read 16 bit length L"