aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-03-25 15:28:22 -0400
committerMark Brown <broonie@linaro.org>2014-03-25 15:30:06 -0400
commit1e25cd4729bd76662d02b142a6a7f8504bb6aea7 (patch)
treeefdbf965c2825a705786eaed3c998613159460d9
parenta6f87fad7b5132f026592729ccf65b995cdec35d (diff)
spi: Do not require a completion
There is no real reason why we require transfers to have a completion and the only user of the completion now checks to see if one has been provided before using it so stop enforcing this. This makes it more convenient for drivers to chain multiple asynchronous transfers together. Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--drivers/spi/spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 38e1c315bb13..d94782340b47 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1621,8 +1621,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)
1621 1621
1622 if (list_empty(&message->transfers)) 1622 if (list_empty(&message->transfers))
1623 return -EINVAL; 1623 return -EINVAL;
1624 if (!message->complete)
1625 return -EINVAL;
1626 1624
1627 /* Half-duplex links include original MicroWire, and ones with 1625 /* Half-duplex links include original MicroWire, and ones with
1628 * only one data pin like SPI_3WIRE (switches direction) or where 1626 * only one data pin like SPI_3WIRE (switches direction) or where