aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 857ee8c407b1..2cd9fdc9c7f9 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1678,9 +1678,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
1678 if ((xfer->tx_nbits == SPI_NBITS_QUAD) && 1678 if ((xfer->tx_nbits == SPI_NBITS_QUAD) &&
1679 !(spi->mode & SPI_TX_QUAD)) 1679 !(spi->mode & SPI_TX_QUAD))
1680 return -EINVAL; 1680 return -EINVAL;
1681 if ((spi->mode & SPI_3WIRE) &&
1682 (xfer->tx_nbits != SPI_NBITS_SINGLE))
1683 return -EINVAL;
1684 } 1681 }
1685 /* check transfer rx_nbits */ 1682 /* check transfer rx_nbits */
1686 if (xfer->rx_buf) { 1683 if (xfer->rx_buf) {
@@ -1694,9 +1691,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
1694 if ((xfer->rx_nbits == SPI_NBITS_QUAD) && 1691 if ((xfer->rx_nbits == SPI_NBITS_QUAD) &&
1695 !(spi->mode & SPI_RX_QUAD)) 1692 !(spi->mode & SPI_RX_QUAD))
1696 return -EINVAL; 1693 return -EINVAL;
1697 if ((spi->mode & SPI_3WIRE) &&
1698 (xfer->rx_nbits != SPI_NBITS_SINGLE))
1699 return -EINVAL;
1700 } 1694 }
1701 } 1695 }
1702 1696