The SPI_READY bit of struct spi_device:mode serves the purpose
of letting the SPI master know if the slave can signal if it is
ready for transfer or not.
The 'wait_enable' platform data was duplicating this functionality.
Use the framework provided method of indicating this capability.
Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
u8 wdelay;
u8 odd_parity;
u8 parity_enable;
- u8 wait_enable;
u8 timer_disable;
u8 clk_internal;
u8 intr_level;
SPIFMT_PARITYENA_MASK,
spi->chip_select);
- if (davinci_spi->pdata->wait_enable)
+ if (spi->mode & SPI_READY)
set_fmt_bits(davinci_spi->base,
SPIFMT_WAITENA_MASK,
spi->chip_select);