mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor(display): Move to proper SPI ready API.
This commit is contained in:
committed by
Pete Johanson
parent
18e5a1a26b
commit
2d6c9f797c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user