drivers: gpio: use gpio_is_ready_dt helper function
Update `struct gpio_dt_spec` use with gpio_is_ready_dt() Signed-off-by: Nick Ward <nix.ward@gmail.com>
This commit is contained in:
parent
3f0ee7f6db
commit
2d65acca3a
184 changed files with 248 additions and 248 deletions
|
@ -362,7 +362,7 @@ static int ht16k33_init(const struct device *dev)
|
|||
if (config->irq_enabled) {
|
||||
uint8_t keys[HT16K33_KEYSCAN_DATA_SIZE];
|
||||
|
||||
if (!device_is_ready(config->irq.port)) {
|
||||
if (!gpio_is_ready_dt(&config->irq)) {
|
||||
LOG_ERR("IRQ device not ready");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue