]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 077ccf840edf24dc46107334c39c5758de248465..2111dbfea6feb8b53f56e73567e54fd4d11a818b 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;