ar71xx: add preliminary support for Mikrotik RB2011L
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 461-spi-add-type-field-to-spi_transfer.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -406,6 +406,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 @@ -508,6 +514,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 };