diff options
author | Sjur Braendeland <sjur.brandeland@stericsson.com> | 2010-08-10 09:36:47 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-11 01:39:28 +0200 |
commit | 98a21ef0abb666eeb12cf67e60203befb07e4210 (patch) | |
tree | 49951f6b93ccb4a2b091c5ebe9907ef609abeaf1 /drivers/net/caif | |
parent | caif: Bugfix - Increase default headroom size for control channel. (diff) | |
download | linux-98a21ef0abb666eeb12cf67e60203befb07e4210.tar.xz linux-98a21ef0abb666eeb12cf67e60203befb07e4210.zip |
caif-spi: Bugfix SPI_DATA_POS settings were inverted.
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>
Diffstat (limited to 'drivers/net/caif')
-rw-r--r-- | drivers/net/caif/caif_spi_slave.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/caif/caif_spi_slave.c b/drivers/net/caif/caif_spi_slave.c index 077ccf840edf..2111dbfea6fe 100644 --- a/drivers/net/caif/caif_spi_slave.c +++ b/drivers/net/caif/caif_spi_slave.c @@ -22,13 +22,13 @@ #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; |