summaryrefslogtreecommitdiff
path: root/include/linux/spi/libertas_spi.h
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2009-06-04 23:57:03 +0400
committerJohn W. Linville <linville@tuxdriver.com>2009-06-10 21:27:50 +0400
commit4d1d49858c0a5a4fb1be4bc7972754cd640245ba (patch)
treefc481d282b7c7e45972b9d3b6cd2e903cac409e6 /include/linux/spi/libertas_spi.h
parent582241a08409c89b086774c60b55c1a1706a7e5d (diff)
downloadlinux-4d1d49858c0a5a4fb1be4bc7972754cd640245ba.tar.xz
net/libertas: remove GPIO-CS handling in SPI interface code
This removes the dependency on GPIO framework and lets the SPI host driver handle the chip select. The SPI host driver is required to keep the CS active for the entire message unless cs_change says otherwise. This patch collects the two/three single SPI transfers into a message. Also the delay in read path in case use_dummy_writes are not used is moved into the SPI host driver. Tested-by: Mike Rapoport <mike@compulab.co.il> Tested-by: Andrey Yurovsky <andrey@cozybit.com> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/spi/libertas_spi.h')
-rw-r--r--include/linux/spi/libertas_spi.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/spi/libertas_spi.h b/include/linux/spi/libertas_spi.h
index 79506f5f9e67..1b5d5384fcd3 100644
--- a/include/linux/spi/libertas_spi.h
+++ b/include/linux/spi/libertas_spi.h
@@ -22,9 +22,6 @@ struct libertas_spi_platform_data {
* speed, you may want to use 0 here. */
u16 use_dummy_writes;
- /* GPIO number to use as chip select */
- u16 gpio_cs;
-
/* Board specific setup/teardown */
int (*setup)(struct spi_device *spi);
int (*teardown)(struct spi_device *spi);