]> git.baikalelectronics.ru Git - kernel.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)
commit6ef05d9374c89f2267db36162ec0cdaae6c698ac
treea542606b8ec578c0a6551e1160b0976e900d8c96
parent9cdb585c5349a8920db56569c836dd2f0ab6048f
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