spi: check bits_per_word in spi_setup
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 23 Aug 2015 14:06:30 +0000 (16:06 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2015 17:58:29 +0000 (18:58 +0100)
commit63ab645f4d8b2dc1351c41751e7ebb1b3f1c99d3
tree8188f47312a99fd8c04ee233c1f94d7c943cfd1e
parent7dc9fbc342deb2e2658ebdecb5ffd7ff57945a66
spi: check bits_per_word in spi_setup

This allows drivers for devices connected via SPI to check if the
controller supports a given bits_per_word value during setup.
Currently any BPW value is accepted durings setup, and transfers
are rejected later.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c