ar71xx: improve support for the My Net Wi-Fi Range Extender device
[openwrt.git] / target / linux / ar71xx / patches-3.10 / 461-spi-add-type-field-to-spi_transfer.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -422,6 +422,12 @@ extern struct spi_master *spi_busnum_to_
4  
5  /*---------------------------------------------------------------------------*/
6  
7 +enum spi_transfer_type {
8 +       SPI_TRANSFER_GENERIC = 0,
9 +       SPI_TRANSFER_FLASH_READ_CMD,
10 +       SPI_TRANSFER_FLASH_READ_DATA,
11 +};
12 +
13  /*
14   * I/O INTERFACE between SPI controller and protocol drivers
15   *
16 @@ -524,6 +530,7 @@ struct spi_transfer {
17         u8              bits_per_word;
18         u16             delay_usecs;
19         u32             speed_hz;
20 +       enum spi_transfer_type type;
21  
22         struct list_head transfer_list;
23  };