]> git.baikalelectronics.ru Git - kernel.git/commit
spi: add ability to validate xfer->bits_per_word in SPI core
authorStephen Warren <swarren@wwwdotorg.org>
Wed, 27 Mar 2013 02:37:57 +0000 (20:37 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 13:14:32 +0000 (14:14 +0100)
commitc7217ac07afac113c3494542b14530361ac0f416
tree818ee5b60f8d24ccfd495ebdb50ea0a175c340b1
parent42129ef1b8c8ed8a038d2d6b7b02920fd0bc627b
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>
drivers/spi/spi.c
include/linux/spi/spi.h