spi/bfin_spi: check per-transfer bits_per_word
authorBob Liu <lliubbo@gmail.com>
Fri, 17 Sep 2010 03:46:22 +0000 (03:46 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 18 Oct 2010 06:49:43 +0000 (02:49 -0400)
commit2e768659df35ea337cb57ea3573c918d31e07894
tree3076e57dd4b733ed31da18c6b8c5c74eb518f5c1
parent4190f6a51f3f9c7c8298202d31b3ead9381c33f1
spi/bfin_spi: check per-transfer bits_per_word

Currently, if the bits_per_word when doing a transfer is not 8bits, we
always treat it as 16bits when we should actually be returning an error.

Signed-off-by: Bob Liu <lliubbo@gmail.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/spi/spi_bfin5xx.c