spi.c (06a691e64b11323a735db3c3bd909d3c0712698f) | spi.c (77e8058810303e5c18b462adb4f761dbb4f3b657) |
---|---|
1/* 2 * SPI init/core code 3 * 4 * Copyright (C) 2005 David Brownell 5 * Copyright (C) 2008 Secret Lab Technologies Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 2116 unchanged lines hidden (view full) --- 2125 } 2126 2127 /** 2128 * Set transfer bits_per_word and max speed as spi device default if 2129 * it is not set for this transfer. 2130 * Set transfer tx_nbits and rx_nbits as single transfer default 2131 * (SPI_NBITS_SINGLE) if it is not set for this transfer. 2132 */ | 1/* 2 * SPI init/core code 3 * 4 * Copyright (C) 2005 David Brownell 5 * Copyright (C) 2008 Secret Lab Technologies Ltd. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 2116 unchanged lines hidden (view full) --- 2125 } 2126 2127 /** 2128 * Set transfer bits_per_word and max speed as spi device default if 2129 * it is not set for this transfer. 2130 * Set transfer tx_nbits and rx_nbits as single transfer default 2131 * (SPI_NBITS_SINGLE) if it is not set for this transfer. 2132 */ |
2133 message->frame_length = 0; |
|
2133 list_for_each_entry(xfer, &message->transfers, transfer_list) { 2134 message->frame_length += xfer->len; 2135 if (!xfer->bits_per_word) 2136 xfer->bits_per_word = spi->bits_per_word; 2137 2138 if (!xfer->speed_hz) 2139 xfer->speed_hz = spi->max_speed_hz; 2140 if (!xfer->speed_hz) --- 568 unchanged lines hidden --- | 2134 list_for_each_entry(xfer, &message->transfers, transfer_list) { 2135 message->frame_length += xfer->len; 2136 if (!xfer->bits_per_word) 2137 xfer->bits_per_word = spi->bits_per_word; 2138 2139 if (!xfer->speed_hz) 2140 xfer->speed_hz = spi->max_speed_hz; 2141 if (!xfer->speed_hz) --- 568 unchanged lines hidden --- |