Skip to content

Commit

Permalink
spi: Do not require a completion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Mar 25, 2014
1 parent a6f87fa commit 1e25cd4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1621,8 +1621,6 @@ static int __spi_validate(struct spi_device *spi, struct spi_message *message)

if (list_empty(&message->transfers))
return -EINVAL;
if (!message->complete)
return -EINVAL;

/* Half-duplex links include original MicroWire, and ones with
* only one data pin like SPI_3WIRE (switches direction) or where
Expand Down

0 comments on commit 1e25cd4

Please sign in to comment.