caif-spi: Bugfix SPI_DATA_POS settings were inverted.
authorSjur Braendeland <sjur.brandeland@stericsson.com>
Tue, 10 Aug 2010 07:36:47 +0000 (07:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Aug 2010 23:39:28 +0000 (16:39 -0700)
The setting of SPI_DATA_POS depending on CONFIG_CAIF_SPI_SYNC
where inverted.

Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_spi_slave.c

index 077ccf8..2111dbf 100644 (file)
 #include <net/caif/caif_spi.h>
 
 #ifndef CONFIG_CAIF_SPI_SYNC
-#define SPI_DATA_POS SPI_CMD_SZ
+#define SPI_DATA_POS 0
 static inline int forward_to_spi_cmd(struct cfspi *cfspi)
 {
        return cfspi->rx_cpck_len;
 }
 #else
-#define SPI_DATA_POS 0
+#define SPI_DATA_POS SPI_CMD_SZ
 static inline int forward_to_spi_cmd(struct cfspi *cfspi)
 {
        return 0;