]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: orion: use new `word_delay` field for SPI transfers
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 26 Sep 2019 10:51:33 +0000 (13:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Oct 2019 10:43:31 +0000 (11:43 +0100)
commit21e26062052c60d31640e614b792473fca787f9f
treea542606b8ec578c0a6551e1160b0976e900d8c96
parent84593a131c3af21d686d05c4b4432290a415d399
spi: orion: use new `word_delay` field for SPI transfers

The `word_delay` field had it's type changed to `struct spi_delay`.
This allows users to specify nano-second or clock-cycle delays (if needed).

Converting to use `word_delay` is straightforward: it just uses the new
`spi_delay_exec()` routine, that handles the `unit` part.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20190926105147.7839-6-alexandru.ardelean@analog.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-orion.c