driver: spi: Modify core to compute the message length
authorSourav Poddar <sourav.poddar@ti.com>
Thu, 18 Jul 2013 10:01:25 +0000 (15:31 +0530)
committerMark Brown <broonie@linaro.org>
Thu, 18 Jul 2013 15:22:01 +0000 (16:22 +0100)
commit078726ce6d56a767533064e0f2f2100d7cb6fc22
treed5b74c5b42ae49a9fcc0eabcc922c6309fe8eb8c
parentad81f0545ef01ea651886dddac4bef6cec930092
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>
drivers/spi/spi.c
include/linux/spi/spi.h