summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-cavium.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-09-26 13:51:37 +0300
committerMark Brown <broonie@kernel.org>2019-10-15 11:51:57 +0100
commite74dc5c763448004ec8add422e9db53ee246acce (patch)
tree0bd1d5f95847166c23a99fe4a4b4705735e0b637 /drivers/spi/spi-cavium.c
parentacc7720de3cb9721ac07f68309dd6d7aae8e9a7a (diff)
downloadlinux-e74dc5c763448004ec8add422e9db53ee246acce.tar.bz2
spi: use new `spi_transfer_delay_exec` helper where straightforward
For many places in the spi drivers, using the new `spi_transfer_delay` helper is straightforward. It's just replacing: ``` if (t->delay_usecs) udelay(t->delay_usecs); ``` with `spi_transfer_delay(t)` which handles both `delay_usecs` and the new `delay` field. This change replaces in all places (in the spi drivers) where this change is simple. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Link: https://lore.kernel.org/r/20190926105147.7839-10-alexandru.ardelean@analog.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-cavium.c')
-rw-r--r--drivers/spi/spi-cavium.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-cavium.c b/drivers/spi/spi-cavium.c
index 5aaf21582cb5..6854c3ce423b 100644
--- a/drivers/spi/spi-cavium.c
+++ b/drivers/spi/spi-cavium.c
@@ -119,8 +119,7 @@ static int octeon_spi_do_transfer(struct octeon_spi *p,
*rx_buf++ = (u8)v;
}
- if (xfer->delay_usecs)
- udelay(xfer->delay_usecs);
+ spi_transfer_delay_exec(xfer);
return xfer->len;
}