commit | 543bb255a1987836e64f5b7a63664ead8b32b042 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@wwwdotorg.org> | Tue Mar 26 20:37:57 2013 -0600 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Mon Apr 01 14:14:32 2013 +0100 |
tree | 818ee5b60f8d24ccfd495ebdb50ea0a175c340b1 | |
parent | 5c725b34d438fdd3c528673a5f53f4b07f879c68 [diff] |
spi: add ability to validate xfer->bits_per_word in SPI core Allow SPI masters to define the set of bits_per_word values they support. If they do this, then the SPI core will reject transfers that attempt to use an unsupported bits_per_word value. This eliminates the need for each SPI driver to implement this checking in most cases. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>