0010-spi-add-type-field-to-spi_transfer-struct.patch 973 B

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