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>
This commit is contained in:
committed by
David S. Miller
parent
24e263adba
commit
98a21ef0ab
@@ -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;
|
||||||
|
Reference in New Issue
Block a user