spi/bcm63xx: check spi bits_per_word in spi_setup
authorJonas Gorski <jogo@openwrt.org>
Mon, 11 Mar 2013 23:13:42 +0000 (00:13 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 12 Mar 2013 19:14:45 +0000 (19:14 +0000)
commite2bdae06329ef3fb8918032735cd963efc701b7e
treee0161a3b7168f6f73836393ab5d97b96d039ef08
parent52f83bbd65c1178ac989e511943ecd6e0c5f8ad8
spi/bcm63xx: check spi bits_per_word in spi_setup

Instead of fixing up the bits_per_word (which the spi subsystem already
does for us), check it for supported values.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-bcm63xx.c