spi: spi-fsl-espi: convert transfer delay to `spi_delay` format
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 26 Sep 2019 10:51:44 +0000 (13:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Oct 2019 10:46:34 +0000 (11:46 +0100)
commit3984d39b0e41ac4de8b4530ae3911ccf52ed4bbf
tree1352f93af0b1b53d905a415b2fa1449903358f97
parent25093bdeb6bcae728e12e3795261dbd3677060a9
spi: spi-fsl-espi: convert transfer delay to `spi_delay` format

The way the max delay is computed for this controller, it looks like it is
searching for the max delay from an SPI message a using that.

No idea if this is valid. But this change should support both `delay_usecs`
and the new `delay` data which is of `spi_delay` type.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20190926105147.7839-17-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-espi.c
drivers/spi/spi.c
include/linux/spi/spi.h