Move some common spi_setup() error checks into the SPI framework from the
spi_master controller drivers:
- Add a new "mode_bits" field to spi_master
- Use that in spi_setup to validate the spi->mode value being
requested. Setting this new field is now mandatory for any
controller supporting more than vanilla SPI_MODE_0.
- Update all spi_master drivers to:
* Initialize that field
* Remove current spi_setup() checks using that value.
This is a net minor code shrink.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|
||
|---|---|---|
| .. | ||
| ad7877.h | ||
| ad7879.h | ||
| ads7846.h | ||
| at73c213.h | ||
| corgi_lcd.h | ||
| ds1305.h | ||
| eeprom.h | ||
| flash.h | ||
| Kbuild | ||
| libertas_spi.h | ||
| max7301.h | ||
| mcp23s08.h | ||
| mmc_spi.h | ||
| orion_spi.h | ||
| spi.h | ||
| spi_bitbang.h | ||
| spi_gpio.h | ||
| spidev.h | ||
| tdo24m.h | ||
| tle62x0.h | ||
| wl12xx.h | ||