]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sprd: convert transfer word delay to spi_delay struct
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 26 Sep 2019 10:51:32 +0000 (13:51 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 15 Oct 2019 10:42:09 +0000 (11:42 +0100)
commit24d6b5045e2257dc763c3d0563e9d643d15f65fd
tree0b35f056d35227369c84dc0755b3993f42b76712
parentf83a3e77fb71c7617e4ef171f7a648c4cddb08aa
spi: sprd: convert transfer word delay to spi_delay struct

The Spreadtrum SPI driver is the only user of the `word_delay` field in
the `spi_transfer` struct.

This change converts the field to use the `spi_delay` struct. This also
enforces the users to specify the delay unit to be `SPI_DELAY_UNIT_SCK`.

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