diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/spi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 46d188a9947c..a6ef2a8e6de4 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -1049,4 +1049,10 @@ spi_unregister_device(struct spi_device *spi) | |||
| 1049 | extern const struct spi_device_id * | 1049 | extern const struct spi_device_id * |
| 1050 | spi_get_device_id(const struct spi_device *sdev); | 1050 | spi_get_device_id(const struct spi_device *sdev); |
| 1051 | 1051 | ||
| 1052 | static inline bool | ||
| 1053 | spi_transfer_is_last(struct spi_master *master, struct spi_transfer *xfer) | ||
| 1054 | { | ||
| 1055 | return list_is_last(&xfer->transfer_list, &master->cur_msg->transfers); | ||
| 1056 | } | ||
| 1057 | |||
| 1052 | #endif /* __LINUX_SPI_H */ | 1058 | #endif /* __LINUX_SPI_H */ |
