spi: xilinx: Convert to let spi core validate bits_per_word
authorAxel Lin <axel.lin@ingics.com>
Fri, 14 Feb 2014 13:06:43 +0000 (21:06 +0800)
committerMark Brown <broonie@linaro.org>
Sun, 23 Feb 2014 03:53:21 +0000 (12:53 +0900)
commit9bf46f6df5d1e9db8b4b786d22e88d8b6edd949e
treea8c87a069b1cd79c713eeb1e3637c6ab62456aed
parent38dbfb59d1175ef458d006556061adeaa8751b72
spi: xilinx: Convert to let spi core validate bits_per_word

Set bits_per_word_mask so spi core will reject transfers that attempt to use
an unsupported bits_per_word value.

spi_bitbang requires custom setup_transfer() to be defined if there is a
custom txrx_bufs(). Thus keep the empty xilinx_spi_setup_transfer() function
in the code.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-xilinx.c