summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2024-09-10 04:26:17 +0200
committerMark Brown <broonie@kernel.org>2024-09-10 13:41:42 +0200
commit740c1c84bfa3d8c63bd3b01fb570e7452f51fbd8 (patch)
tree5347a600a056cd86d4601e7b1cd5e3fdd4c2e923 /drivers/spi
parentplatform/olpc: olpc-xo175-ec: switch to use spi_target_abort(). (diff)
downloadlinux-740c1c84bfa3d8c63bd3b01fb570e7452f51fbd8.tar.xz
linux-740c1c84bfa3d8c63bd3b01fb570e7452f51fbd8.zip
spi: remove spi_controller_is_slave() and spi_slave_abort()
spi_controller_is_slave() and spi_slave_abort() are all replaced, so they can be removed. No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://patch.msgid.link/20240910022618.1397-8-yangyingliang@huaweicloud.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index ea14c33bc831..c1dad30a4528 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2934,21 +2934,10 @@ static struct class spi_master_class = {
#ifdef CONFIG_SPI_SLAVE
/**
- * spi_slave_abort - abort the ongoing transfer request on an SPI slave
+ * spi_target_abort - abort the ongoing transfer request on an SPI slave
* controller
* @spi: device used for the current transfer
*/
-int spi_slave_abort(struct spi_device *spi)
-{
- struct spi_controller *ctlr = spi->controller;
-
- if (spi_controller_is_slave(ctlr) && ctlr->slave_abort)
- return ctlr->slave_abort(ctlr);
-
- return -ENOTSUPP;
-}
-EXPORT_SYMBOL_GPL(spi_slave_abort);
-
int spi_target_abort(struct spi_device *spi)
{
struct spi_controller *ctlr = spi->controller;