drivers: tests: replace usage of spi_is_ready
with spi_is_ready_dt
`spi_is_ready` function is being deprecated in favor of `spi_is_ready_dt` so let's replace the old usage in the tree. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
parent
5170c16e5c
commit
e077fb73ec
58 changed files with 59 additions and 59 deletions
|
@ -953,7 +953,7 @@ static int mcp2515_init(const struct device *dev)
|
|||
}
|
||||
}
|
||||
|
||||
if (!spi_is_ready(&dev_cfg->bus)) {
|
||||
if (!spi_is_ready_dt(&dev_cfg->bus)) {
|
||||
LOG_ERR("SPI bus %s not ready", dev_cfg->bus.bus->name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue