0005-spi-add-various-flags-to-spi_transfer-and-spi_messag.patch 950 B

12345678910111213141516171819202122232425262728293031323334
  1. From 34dcc540e28cc2253fd3bdaacdd77faf1d42d759 Mon Sep 17 00:00:00 2001
  2. From: Phil Sutter <phil@nwl.cc>
  3. Date: Tue, 13 May 2014 00:17:06 +0200
  4. Subject: [PATCH] spi: add various flags to spi_transfer and spi_message
  5. structs
  6. ---
  7. include/linux/spi/spi.h | 3 +++
  8. 1 file changed, 3 insertions(+)
  9. diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
  10. index 4203c66..4ee1a02 100644
  11. --- a/include/linux/spi/spi.h
  12. +++ b/include/linux/spi/spi.h
  13. @@ -581,6 +581,8 @@ struct spi_transfer {
  14. dma_addr_t rx_dma;
  15. unsigned cs_change:1;
  16. + unsigned verify:1;
  17. + unsigned fast_write:1;
  18. unsigned tx_nbits:3;
  19. unsigned rx_nbits:3;
  20. #define SPI_NBITS_SINGLE 0x01 /* 1bit transfer */
  21. @@ -627,6 +629,7 @@ struct spi_message {
  22. struct spi_device *spi;
  23. unsigned is_dma_mapped:1;
  24. + unsigned fast_read:1;
  25. /* REVISIT: we might want a flag affecting the behavior of the
  26. * last transfer ... allowing things like "read 16 bit length L"
  27. --
  28. 1.8.5.3