From: Sjur Braendeland Date: Tue, 10 Aug 2010 07:36:47 +0000 (+0000) Subject: caif-spi: Bugfix SPI_DATA_POS settings were inverted. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98a21ef0abb666eeb12cf67e60203befb07e4210;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/caif/caif_spi_slave.c b/drivers/net/caif/caif_spi_slave.c index 077ccf840ed..2111dbfea6f 100644 --- a/drivers/net/caif/caif_spi_slave.c +++ b/drivers/net/caif/caif_spi_slave.c @@ -22,13 +22,13 @@ #include #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;