aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-01 08:48:58 -0400
committerMark Brown <broonie@linaro.org>2013-09-01 08:48:58 -0400
commit9020b75467ff81b2ae257bbf19acff462854d4ab (patch)
tree42345d07017a00013edd4ee36d718776ee5ceb22
parent84c86edab3a37f5f650d0b3bb0f9803f9fbf2a8b (diff)
parent078726ce6d56a767533064e0f2f2100d7cb6fc22 (diff)
Merge remote-tracking branch 'spi/topic/msglen' into spi-next
-rw-r--r--drivers/spi/spi.c1
-rw-r--r--include/linux/spi/spi.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 8bc7de019e5d..7ed5c147c073 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1380,6 +1380,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
1380 * it is not set for this transfer. 1380 * it is not set for this transfer.
1381 */ 1381 */
1382 list_for_each_entry(xfer, &message->transfers, transfer_list) { 1382 list_for_each_entry(xfer, &message->transfers, transfer_list) {
1383 message->frame_length += xfer->len;
1383 if (!xfer->bits_per_word) 1384 if (!xfer->bits_per_word)
1384 xfer->bits_per_word = spi->bits_per_word; 1385 xfer->bits_per_word = spi->bits_per_word;
1385 if (!xfer->speed_hz) { 1386 if (!xfer->speed_hz) {
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 47854f3813d8..e1b3e69aeddc 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -584,6 +584,7 @@ struct spi_message {
584 /* completion is reported through a callback */ 584 /* completion is reported through a callback */
585 void (*complete)(void *context); 585 void (*complete)(void *context);
586 void *context; 586 void *context;
587 unsigned frame_length;
587 unsigned actual_length; 588 unsigned actual_length;
588 int status; 589 int status;
589 590