Commit 8c537847 authored by Yang Yingliang's avatar Yang Yingliang Committed by Mark Brown

spi: sprd: switch to use modern name

Change legacy name master to modern name host or controller.

No functional changed.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://msgid.link/r/20231128093031.3707034-3-yangyingliang@huawei.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0a3d087d
...@@ -578,7 +578,7 @@ static void sprd_spi_dma_release(struct sprd_spi *ss) ...@@ -578,7 +578,7 @@ static void sprd_spi_dma_release(struct sprd_spi *ss)
static int sprd_spi_dma_txrx_bufs(struct spi_device *sdev, static int sprd_spi_dma_txrx_bufs(struct spi_device *sdev,
struct spi_transfer *t) struct spi_transfer *t)
{ {
struct sprd_spi *ss = spi_master_get_devdata(sdev->master); struct sprd_spi *ss = spi_controller_get_devdata(sdev->controller);
u32 trans_len = ss->trans_len; u32 trans_len = ss->trans_len;
int ret, write_size = 0; int ret, write_size = 0;
...@@ -923,7 +923,7 @@ static int sprd_spi_probe(struct platform_device *pdev) ...@@ -923,7 +923,7 @@ static int sprd_spi_probe(struct platform_device *pdev)
int ret; int ret;
pdev->id = of_alias_get_id(pdev->dev.of_node, "spi"); pdev->id = of_alias_get_id(pdev->dev.of_node, "spi");
sctlr = spi_alloc_master(&pdev->dev, sizeof(*ss)); sctlr = spi_alloc_host(&pdev->dev, sizeof(*ss));
if (!sctlr) if (!sctlr)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment