Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;