diff options
author | John Crispin <john@openwrt.org> | 2015-02-15 19:45:29 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-02-15 19:45:29 +0000 |
commit | 7e4b3de2493f024432935e283f5eeb2920957871 (patch) | |
tree | 10524efa8132ebe05e93a75a10ef3ca733edea0e /target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch | |
parent | 9b1c7a9de4a2734b701660a9f3720e842626aea3 (diff) | |
download | master-31e0f0ae-7e4b3de2493f024432935e283f5eeb2920957871.tar.gz master-31e0f0ae-7e4b3de2493f024432935e283f5eeb2920957871.tar.bz2 master-31e0f0ae-7e4b3de2493f024432935e283f5eeb2920957871.zip |
ar71xx: add v3.18 support
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 44456
Diffstat (limited to 'target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch')
-rw-r--r-- | target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch b/target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch new file mode 100644 index 0000000000..010958be86 --- /dev/null +++ b/target/linux/ar71xx/patches-3.18/460-spi-bitbang-export-spi_bitbang_bufs.patch @@ -0,0 +1,28 @@ +--- a/drivers/spi/spi-bitbang.c ++++ b/drivers/spi/spi-bitbang.c +@@ -233,13 +233,14 @@ void spi_bitbang_cleanup(struct spi_devi + } + EXPORT_SYMBOL_GPL(spi_bitbang_cleanup); + +-static int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t) ++int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t) + { + struct spi_bitbang_cs *cs = spi->controller_state; + unsigned nsecs = cs->nsecs; + + return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t); + } ++EXPORT_SYMBOL_GPL(spi_bitbang_bufs); + + /*----------------------------------------------------------------------*/ + +--- a/include/linux/spi/spi_bitbang.h ++++ b/include/linux/spi/spi_bitbang.h +@@ -39,6 +39,7 @@ extern int spi_bitbang_setup(struct spi_ + extern void spi_bitbang_cleanup(struct spi_device *spi); + extern int spi_bitbang_setup_transfer(struct spi_device *spi, + struct spi_transfer *t); ++extern int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t); + + /* start or stop queue processing */ + extern int spi_bitbang_start(struct spi_bitbang *spi); |