]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mpc52xx: Convert to use bits_per_word_mask
authorAxel Lin <axel.lin@ingics.com>
Fri, 28 Mar 2014 15:37:54 +0000 (23:37 +0800)
committerMark Brown <broonie@linaro.org>
Sat, 29 Mar 2014 10:15:53 +0000 (10:15 +0000)
commitc3cfe562fee547ca91a64d824b88425676bb1dd5
tree83ab8a511399d7bfd35772904acf25712de4ce50
parent6e5896a2151f5b8703c7f1ed7fc5720a8d8c3aac
spi: mpc52xx: Convert to use bits_per_word_mask

This controller only supports 8-bit word length.
Set bits_per_word_mask so spi core will reject transfers that attempt to use
an unsupported bits_per_word value.
Also remove the duplicate code to test spi->mode, it is done by spi core.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-mpc52xx.c