d956499bc5307afb5b24a0382b4722c9333fc635
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.8 / 461-spi-add-type-field-to-spi_transfer.patch
1 --- a/include/linux/spi/spi.h
2 +++ b/include/linux/spi/spi.h
3 @@ -409,6 +409,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 @@ -511,6 +517,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 };