diff mbox series

[-next,3/7] spi: ch341: switch to use devm_spi_alloc_host()

Message ID 20240902125947.1368-4-yangyingliang@huaweicloud.com
State New
Headers show
Series spi: replace and remove {devm_}spi_alloc_master/slave() | expand

Commit Message

Yang Yingliang Sept. 2, 2024, 12:59 p.m. UTC
From: Yang Yingliang <yangyingliang@huawei.com>

Switch to use modern name function devm_spi_alloc_host().

No functional changed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/spi/spi-ch341.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/spi/spi-ch341.c b/drivers/spi/spi-ch341.c
index d2351812d310..46bc208f2d05 100644
--- a/drivers/spi/spi-ch341.c
+++ b/drivers/spi/spi-ch341.c
@@ -152,7 +152,7 @@  static int ch341_probe(struct usb_interface *intf,
 	if (ret)
 		return ret;
 
-	ctrl = devm_spi_alloc_master(&udev->dev, sizeof(struct ch341_spi_dev));
+	ctrl = devm_spi_alloc_host(&udev->dev, sizeof(struct ch341_spi_dev));
 	if (!ctrl)
 		return -ENOMEM;