]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
spi: davinci: fix to support more than 2 chip selects
authorMurali Karicheri <m-karicheri2@ti.com>
Thu, 31 Jul 2014 17:33:14 +0000 (20:33 +0300)
committerMark Brown <broonie@linaro.org>
Thu, 31 Jul 2014 19:35:32 +0000 (20:35 +0100)
commit7480e755c6e6e890200e8998597e8d0baa51fa8e
treea8f0da48dffdc24fe0958843848621457d415bfe
parent7171511eaec5bf23fb06078f59784a3a0626b38f
spi: davinci: fix to support more than 2 chip selects

Currently, the driver defines SPI_MAX_CHIPSELECT as 2 and
use per device array bytes_per_word based on this. This breaks
if num_chipselect per device is greater than 2. This patch
fix this and allocate memory for this array based on
num_chipselect.

It's preparation patch to enable GPIO CS feature for
Davinci SPI.

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