From: Murali Karicheri Date: Thu, 31 Jul 2014 17:33:14 +0000 (+0300) Subject: spi: davinci: fix to support more than 2 chip selects X-Git-Tag: omap-for-v3.17/fixes-against-rc2~157^2~3^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7480e755c6e6e890200e8998597e8d0baa51fa8e;p=pandora-kernel.git 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 Signed-off-by: Grygorii Strashko Signed-off-by: Mark Brown --- Reading git-diff-tree failed