Commit 98a21ef0 authored by Sjur Braendeland's avatar Sjur Braendeland Committed by David S. Miller

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: default avatarSjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 24e263ad
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
#include <net/caif/caif_spi.h> #include <net/caif/caif_spi.h>
#ifndef CONFIG_CAIF_SPI_SYNC #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) static inline int forward_to_spi_cmd(struct cfspi *cfspi)
{ {
return cfspi->rx_cpck_len; return cfspi->rx_cpck_len;
} }
#else #else
#define SPI_DATA_POS 0 #define SPI_DATA_POS SPI_CMD_SZ
static inline int forward_to_spi_cmd(struct cfspi *cfspi) static inline int forward_to_spi_cmd(struct cfspi *cfspi)
{ {
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment