diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2013-07-18 14:01:25 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-18 19:22:01 +0400 |
commit | 078726ce6d56a767533064e0f2f2100d7cb6fc22 (patch) | |
tree | d5b74c5b42ae49a9fcc0eabcc922c6309fe8eb8c /include/linux/spi | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | linux-078726ce6d56a767533064e0f2f2100d7cb6fc22.tar.xz |
driver: spi: Modify core to compute the message length
Make spi core calculate the message length while
populating the other transfer parameters.
Usecase, driver can use it to populate framelength filed in their
controller.
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/spi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 28e440be1c07..aadd0a885a0f 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -578,6 +578,7 @@ struct spi_message { /* completion is reported through a callback */ void (*complete)(void *context); void *context; + unsigned frame_length; unsigned actual_length; int status; |