ar71xx: add preliminary support for Mikrotik RB2011L
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / patches-3.3 / 460-spi-bitbang-export-spi_bitbang_bufs.patch
1 --- a/drivers/spi/spi-bitbang.c
2 +++ b/drivers/spi/spi-bitbang.c
3 @@ -234,13 +234,14 @@ void spi_bitbang_cleanup(struct spi_devi
4 }
5 EXPORT_SYMBOL_GPL(spi_bitbang_cleanup);
6
7 -static int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t)
8 +int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t)
9 {
10 struct spi_bitbang_cs *cs = spi->controller_state;
11 unsigned nsecs = cs->nsecs;
12
13 return cs->txrx_bufs(spi, cs->txrx_word, nsecs, t);
14 }
15 +EXPORT_SYMBOL_GPL(spi_bitbang_bufs);
16
17 /*----------------------------------------------------------------------*/
18
19 --- a/include/linux/spi/spi_bitbang.h
20 +++ b/include/linux/spi/spi_bitbang.h
21 @@ -44,6 +44,7 @@ extern void spi_bitbang_cleanup(struct s
22 extern int spi_bitbang_transfer(struct spi_device *spi, struct spi_message *m);
23 extern int spi_bitbang_setup_transfer(struct spi_device *spi,
24 struct spi_transfer *t);
25 +extern int spi_bitbang_bufs(struct spi_device *spi, struct spi_transfer *t);
26
27 /* start or stop queue processing */
28 extern int spi_bitbang_start(struct spi_bitbang *spi);