12345678910111213141516171819202122232425262728293031323334353637 |
- From eaf82ac5fc9272545d4d4fb4582eab69d37e389a Mon Sep 17 00:00:00 2001
- From: Phil Sutter <phil@nwl.cc>
- Date: Tue, 13 May 2014 00:23:56 +0200
- Subject: [PATCH] spi: add type field to spi_transfer struct
- ---
- include/linux/spi/spi.h | 7 +++++++
- 1 file changed, 7 insertions(+)
- diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
- index 4ee1a02..a77d6c6 100644
- --- a/include/linux/spi/spi.h
- +++ b/include/linux/spi/spi.h
- @@ -475,6 +475,12 @@ extern struct spi_master *spi_busnum_to_master(u16 busnum);
-
- /*---------------------------------------------------------------------------*/
-
- +enum spi_transfer_type {
- + SPI_TRANSFER_GENERIC = 0,
- + SPI_TRANSFER_FLASH_READ_CMD,
- + SPI_TRANSFER_FLASH_READ_DATA,
- +};
- +
- /*
- * I/O INTERFACE between SPI controller and protocol drivers
- *
- @@ -591,6 +597,7 @@ struct spi_transfer {
- u8 bits_per_word;
- u16 delay_usecs;
- u32 speed_hz;
- + enum spi_transfer_type type;
-
- struct list_head transfer_list;
- };
- --
- 1.8.5.3
|