diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-09-26 12:51:37 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-15 12:51:57 +0200 |
commit | e74dc5c763448004ec8add422e9db53ee246acce (patch) | |
tree | 0bd1d5f95847166c23a99fe4a4b4705735e0b637 /drivers/spi/spi-omap-100k.c | |
parent | spi: spi-axi: extend support for the `delay` field (diff) | |
download | linux-e74dc5c763448004ec8add422e9db53ee246acce.tar.xz linux-e74dc5c763448004ec8add422e9db53ee246acce.zip |
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-omap-100k.c')
-rw-r--r-- | drivers/spi/spi-omap-100k.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-omap-100k.c b/drivers/spi/spi-omap-100k.c index 43a4785fc89b..5c704ba6d8ea 100644 --- a/drivers/spi/spi-omap-100k.c +++ b/drivers/spi/spi-omap-100k.c @@ -321,8 +321,7 @@ static int omap1_spi100k_transfer_one_message(struct spi_master *master, } } - if (t->delay_usecs) - udelay(t->delay_usecs); + spi_transfer_delay_exec(t); /* ignore the "leave it on after last xfer" hint */ |