refactor(display): Move to proper SPI ready API.
This commit is contained in:
parent
18e5a1a26b
commit
2d6c9f797c
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ static int il0323_controller_init(const struct device *dev) {
|
||||||
static int il0323_init(const struct device *dev) {
|
static int il0323_init(const struct device *dev) {
|
||||||
const struct il0323_cfg *cfg = dev->config;
|
const struct il0323_cfg *cfg = dev->config;
|
||||||
|
|
||||||
if (!spi_is_ready(&cfg->spi)) {
|
if (!spi_is_ready_dt(&cfg->spi)) {
|
||||||
LOG_ERR("SPI device not ready for IL0323");
|
LOG_ERR("SPI device not ready for IL0323");
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue