Skip to content

Commit 0191e98

Browse files
Yang Yingliangbroonie
authored andcommitted
spi: ch341: switch to use devm_spi_alloc_host()
Switch to use modern name function devm_spi_alloc_host(). No functional changed. Signed-off-by: Yang Yingliang <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ac2f5bb commit 0191e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-ch341.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static int ch341_probe(struct usb_interface *intf,
152152
if (ret)
153153
return ret;
154154

155-
ctrl = devm_spi_alloc_master(&udev->dev, sizeof(struct ch341_spi_dev));
155+
ctrl = devm_spi_alloc_host(&udev->dev, sizeof(struct ch341_spi_dev));
156156
if (!ctrl)
157157
return -ENOMEM;
158158

0 commit comments

Comments
 (0)