diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-12 22:13:27 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-23 12:47:07 +0900 |
commit | 23e2c2aa45a213ea25636ac5add66c2507e7361b (patch) | |
tree | 6f246f62a4652b71c28151d158a96dbe4925b8b3 /drivers/spi/spi-pl022.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | lwn-23e2c2aa45a213ea25636ac5add66c2507e7361b.tar.gz lwn-23e2c2aa45a213ea25636ac5add66c2507e7361b.zip |
spi: Use list_last_entry at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
-rw-r--r-- | drivers/spi/spi-pl022.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 2789b452e711..3c5b90559bec 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -459,9 +459,8 @@ static void giveback(struct pl022 *pl022) struct spi_transfer *last_transfer; pl022->next_msg_cs_active = false; - last_transfer = list_entry(pl022->cur_msg->transfers.prev, - struct spi_transfer, - transfer_list); + last_transfer = list_last_entry(&pl022->cur_msg->transfers, + struct spi_transfer, transfer_list); /* Delay if requested before any change in chip select */ if (last_transfer->delay_usecs) |