Merge remote-tracking branch 'spi/topic/msglen' into spi-next

This commit is contained in:
Mark Brown
2013-09-01 13:48:58 +01:00
2 changed files with 2 additions and 0 deletions

View File

@@ -1380,6 +1380,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
* it is not set for this transfer.
*/
list_for_each_entry(xfer, &message->transfers, transfer_list) {
message->frame_length += xfer->len;
if (!xfer->bits_per_word)
xfer->bits_per_word = spi->bits_per_word;
if (!xfer->speed_hz) {