summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-sn-f-ospi.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-18 12:31:54 +0300
committerMark Brown <broonie@kernel.org>2023-08-21 16:29:39 +0300
commit557efcf4c64f27f1b69af464246bf90b4d52e5be (patch)
tree476c5279a1602280620f84493186eb252de0b2a9 /drivers/spi/spi-sn-f-ospi.c
parent8d9ae783fb706ae98db18d050201d96a9634bd45 (diff)
downloadlinux-557efcf4c64f27f1b69af464246bf90b4d52e5be.tar.xz
spi: spi-sn-f-ospi: switch to use modern name
Change legacy name master to modern name host or controller. No functional changed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20230818093154.1183529-24-yangyingliang@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-sn-f-ospi.c')
-rw-r--r--drivers/spi/spi-sn-f-ospi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c
index 85e4a01bc8b0..a7c3b3923b4a 100644
--- a/drivers/spi/spi-sn-f-ospi.c
+++ b/drivers/spi/spi-sn-f-ospi.c
@@ -501,7 +501,7 @@ out:
static int f_ospi_exec_op(struct spi_mem *mem, const struct spi_mem_op *op)
{
- struct f_ospi *ospi = spi_controller_get_devdata(mem->spi->master);
+ struct f_ospi *ospi = spi_controller_get_devdata(mem->spi->controller);
int err = 0;
switch (op->data.dir) {
@@ -606,7 +606,7 @@ static int f_ospi_probe(struct platform_device *pdev)
u32 num_cs = OSPI_NUM_CS;
int ret;
- ctlr = spi_alloc_master(dev, sizeof(*ospi));
+ ctlr = spi_alloc_host(dev, sizeof(*ospi));
if (!ctlr)
return -ENOMEM;