ar71xx: refresh 4.1 patches
[openwrt/staging/chunkeey.git] / target / linux / ar71xx / patches-4.1 / 461-spi-add-type-field-to-spi_transfer.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -506,6 +506,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 @@ -626,6 +632,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 };