summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-slave-mt27xx.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-02-07 19:40:36 +0100
committerMark Brown <broonie@kernel.org>2024-02-08 12:54:53 +0100
commit8197b136bbbe64a7cab1020a4b067020e5977d98 (patch)
tree07be73ccb0ffe9de228c960f61fe6890c825a0e5 /drivers/spi/spi-slave-mt27xx.c
parentspi: loopback-test: Follow renaming of SPI "master" to "controller" (diff)
downloadlinux-8197b136bbbe64a7cab1020a4b067020e5977d98.tar.xz
linux-8197b136bbbe64a7cab1020a4b067020e5977d98.zip
spi: slave-mt27xx: Follow renaming of SPI "master" to "controller"
In commit 8caab75fd2c2 ("spi: Generalize SPI "master" to "controller"") some functions and struct members were renamed. To not break all drivers compatibility macros were provided. To be able to remove these compatibility macros push the renaming into this driver. Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/184a5263af2ec01fd5ad9b8db667ae4d6cbec948.1707324794.git.u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-slave-mt27xx.c')
-rw-r--r--drivers/spi/spi-slave-mt27xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-slave-mt27xx.c b/drivers/spi/spi-slave-mt27xx.c
index 6d6772974783..f1ddf4c099a3 100644
--- a/drivers/spi/spi-slave-mt27xx.c
+++ b/drivers/spi/spi-slave-mt27xx.c
@@ -297,7 +297,7 @@ static int mtk_spi_slave_transfer_one(struct spi_controller *ctlr,
static int mtk_spi_slave_setup(struct spi_device *spi)
{
- struct mtk_spi_slave *mdata = spi_controller_get_devdata(spi->master);
+ struct mtk_spi_slave *mdata = spi_controller_get_devdata(spi->controller);
u32 reg_val;
reg_val = DMA_DONE_EN | DATA_DONE_EN |