diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-30 07:09:50 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-30 07:10:11 +0200 |
commit | aa6259aed442339ba288d5a0e704eb22465c426e (patch) | |
tree | 2dab6fe5d3edfa8f1abaf59119c7d849aaab0593 /target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch | |
parent | 155e38be229580dfad4792b3a8e702c31ca193b0 (diff) |
bump kernels
Diffstat (limited to 'target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch')
-rw-r--r-- | target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch b/target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch new file mode 100644 index 000000000..2721d3c4e --- /dev/null +++ b/target/mips/mikrotik-rb4xx/patches/3.14.9/0010-spi-add-type-field-to-spi_transfer-struct.patch @@ -0,0 +1,37 @@ +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 + |