Re: [PATCH 4/4] spi: Simplify bit width checking code

2013-09-25 Thread Sourav Poddar
On Thursday 26 September 2013 05:22 AM, Trent Piepho wrote: > The code that checks [tr]x_nbits for every transfer is more complex than it > needs to be. > > Checking for SPI_3WIRE isn't needed. spi_config() already prevents 3WIRE > mode from being combined with DUAL or QUAD mode support. So there

[PATCH 4/4] spi: Simplify bit width checking code

2013-09-25 Thread Trent Piepho
The code that checks [tr]x_nbits for every transfer is more complex than it needs to be. Checking for SPI_3WIRE isn't needed. spi_config() 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_3WI