diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-09-26 13:51:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-15 11:46:34 +0100 |
commit | 3984d39b0e41ac4de8b4530ae3911ccf52ed4bbf (patch) | |
tree | 1352f93af0b1b53d905a415b2fa1449903358f97 /include/linux/spi | |
parent | 25093bdeb6bcae728e12e3795261dbd3677060a9 (diff) | |
download | linux-3984d39b0e41ac4de8b4530ae3911ccf52ed4bbf.tar.gz linux-3984d39b0e41ac4de8b4530ae3911ccf52ed4bbf.tar.bz2 linux-3984d39b0e41ac4de8b4530ae3911ccf52ed4bbf.zip |
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>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/spi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index cfd87b18f077..c40d6af2bf07 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -103,6 +103,7 @@ struct spi_delay { u8 unit; }; +extern int spi_delay_to_ns(struct spi_delay *_delay, struct spi_transfer *xfer); extern int spi_delay_exec(struct spi_delay *_delay, struct spi_transfer *xfer); /** |