spi: axi-spi-engine: remove xfer arg from spi_engine_gen_sleep()
authorDavid Lechner <dlechner@baylibre.com>
Mon, 4 Dec 2023 17:33:31 +0000 (11:33 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 6 Dec 2023 14:19:33 +0000 (14:19 +0000)
commite006c181dd9ab006d7b0982d35ef7951fbffe825
tree9673c0c7890bfddff2e4657e65f341aaef65cbdd
parentbe9070bcf67057b7b03c5acc1980d3897448ad20
spi: axi-spi-engine: remove xfer arg from spi_engine_gen_sleep()

This replaces the xfer parameter of spi_engine_gen_sleep() in the AXI
SPI Engine driver with parameters for the delay in nanoseconds and the
SPI SCLK rate. This will allow this function to be used by callers in
the future that do not have a spi_transfer struct.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231204-axi-spi-engine-series-2-v1-5-063672323fce@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-axi-spi-engine.c