]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0c51279a85118ddbfc05c94286702327aac4427
tree7ffdced08fe7ff2e5dab161769131f1f7471bbdd
parent1d37fae44fb9dbbbbf762a8480a46a6ce146741a
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