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
|
@ -109,7 +109,7 @@ int iis2mdc_init_interrupt(const struct device *dev)
|
|||
int ret;
|
||||
|
||||
/* setup data ready gpio interrupt */
|
||||
if (!device_is_ready(config->gpio_drdy.port)) {
|
||||
if (!gpio_is_ready_dt(&config->gpio_drdy)) {
|
||||
LOG_ERR("Cannot get pointer to drdy_gpio device");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue