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:
Bartosz Bilas 2022-12-03 14:49:05 +01:00 committed by Maureen Helm
commit e077fb73ec
58 changed files with 59 additions and 59 deletions

View file

@ -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;
}