diff options
author | William Zhang <william.zhang@broadcom.com> | 2023-02-09 21:02:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-10 22:36:39 +0100 |
commit | 6e80133abeb09721ec4601de5b1e68be67135309 (patch) | |
tree | b64dd9f28d3b04f3c263466f0004fd76340f0690 /drivers/spi/spi.c | |
parent | spi: intel: Update help text of PCI and Platform drivers (diff) | |
download | linux-6e80133abeb09721ec4601de5b1e68be67135309.tar.xz linux-6e80133abeb09721ec4601de5b1e68be67135309.zip |
spi: export spi_transfer_cs_change_delay_exec function
For SPI controller that implements transfer_one_message, it needs to
insert the delay that required by cs change event between the transfers.
Add a wrapper for the local function _spi_transfer_cs_change_delay_exec
and export it for SPI controller driver to use.
Signed-off-by: William Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/r/20230209200246.141520-9-william.zhang@broadcom.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r-- | drivers/spi/spi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 21a8c3a8eee4..f4eb447c565d 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1483,6 +1483,13 @@ static void _spi_transfer_cs_change_delay(struct spi_message *msg, } } +void spi_transfer_cs_change_delay_exec(struct spi_message *msg, + struct spi_transfer *xfer) +{ + _spi_transfer_cs_change_delay(msg, xfer); +} +EXPORT_SYMBOL_GPL(spi_transfer_cs_change_delay_exec); + /* * spi_transfer_one_message - Default implementation of transfer_one_message() * |