mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
spi: spi-axi-spi-engine: remove usage of delay_usecs
The 'delay_usecs' field was handled for backwards compatibility in case there were some users that still configured SPI delay transfers with this field. They should all be removed by now. Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Link: https://lore.kernel.org/r/20210308145502.1075689-2-aardelean@deviqon.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
31890269c0
commit
93c9414489
@ -170,14 +170,10 @@ static void spi_engine_gen_sleep(struct spi_engine_program *p, bool dry,
|
|||||||
unsigned int t;
|
unsigned int t;
|
||||||
int delay;
|
int delay;
|
||||||
|
|
||||||
if (xfer->delay_usecs) {
|
delay = spi_delay_to_ns(&xfer->delay, xfer);
|
||||||
delay = xfer->delay_usecs;
|
if (delay < 0)
|
||||||
} else {
|
return;
|
||||||
delay = spi_delay_to_ns(&xfer->delay, xfer);
|
delay /= 1000;
|
||||||
if (delay < 0)
|
|
||||||
return;
|
|
||||||
delay /= 1000;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (delay == 0)
|
if (delay == 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user