]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Eliminate 3WIRE spi_transfer check
authorTrent Piepho <tpiepho@gmail.com>
Fri, 27 Dec 2013 05:51:06 +0000 (21:51 -0800)
committerMark Brown <broonie@linaro.org>
Mon, 30 Dec 2013 12:44:18 +0000 (12:44 +0000)
commit78be9305217536915dc9380f36efee05408b8b96
tree2e8dafb17158d8d4f8b43743db263d13e68feb14
parentc75c4dee07874ae83d03acf3fdca7c9b4c655c36
spi: Eliminate 3WIRE spi_transfer check

Checking for SPI_3WIRE isn't needed.  spi_setup() already prevents 3WIRE
mode from being combined with DUAL or QUAD mode support.  So there is no
need to differentiate between a single bit device with SPI_3WIRE set and
one with without.  It doesn't change the allowed bit widths.

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c