OSDN Git Service

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)
commit84593a131c3af21d686d05c4b4432290a415d399
tree0b35f056d35227369c84dc0755b3993f42b76712
parent329f0dac4cad9fa4b1439a88180d91bcb5c4eaf8
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