]> 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)
commit14d41d125f06507949d58392453a37cad62f65e9
treea542606b8ec578c0a6551e1160b0976e900d8c96
parent24d6b5045e2257dc763c3d0563e9d643d15f65fd
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