spi: davinci: use spi_device.cs_gpio to store gpio cs per spi device
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 1 Aug 2014 16:40:33 +0000 (19:40 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 18:20:52 +0000 (19:20 +0100)
commitc060014063d552c95129279b73c9cc77e69981fe
tree7ffdced08fe7ff2e5dab161769131f1f7471bbdd
parenta88e34ea213e1bdbd9b2dfca1e1e5fa68b9649a0
spi: davinci: use spi_device.cs_gpio to store gpio cs per spi device

Rework Davinci SPI driver to store GPIO CS number in cs_gpio field
of SPI device structure (spi_device) for both DT and non-DT cases.
This will make Davinci SPI driver code simpler and allows to reuse
more SPI core functionality.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-davinci.c