diff options
author | Yang Yingliang <[email protected]> | 2024-09-02 20:59:46 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-09-03 10:32:50 +0200 |
commit | 0348e117d9599b49940b968583d6e076a8004bc7 (patch) | |
tree | 3af81832b7eb2f78b25cfa02700099d23a7b401d | |
parent | 357c468552f0bbe68e9c9678a82dde6db14e5591 (diff) |
staging: greybus: spi: switch to use spi_alloc_host()
Switch to use modern name function spi_alloc_host().
No functional changed.
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/greybus/spilib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/spilib.c b/drivers/staging/greybus/spilib.c index 0e4ae01eb00f..24e9c909fa02 100644 --- a/drivers/staging/greybus/spilib.c +++ b/drivers/staging/greybus/spilib.c @@ -490,10 +490,10 @@ int gb_spilib_master_init(struct gb_connection *connection, struct device *dev, int ret; u8 i; - /* Allocate master with space for data */ - ctlr = spi_alloc_master(dev, sizeof(*spi)); + /* Allocate host with space for data */ + ctlr = spi_alloc_host(dev, sizeof(*spi)); if (!ctlr) { - dev_err(dev, "cannot alloc SPI master\n"); + dev_err(dev, "cannot alloc SPI host\n"); return -ENOMEM; } |