refactor(display): Move to proper SPI ready API.

This commit is contained in:
Peter Johanson 2024-02-05 12:49:58 -08:00 committed by Pete Johanson
parent 18e5a1a26b
commit 2d6c9f797c

View File

@ -341,7 +341,7 @@ static int il0323_controller_init(const struct device *dev) {
static int il0323_init(const struct device *dev) {
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");
return -EIO;
}