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:
Nick Ward 2023-08-26 13:43:58 +10:00 committed by Maureen Helm
commit 2d65acca3a
184 changed files with 248 additions and 248 deletions

View file

@ -108,7 +108,7 @@ int icm42605_init_interrupt(const struct device *dev)
const struct icm42605_config *cfg = dev->config;
int result = 0;
if (!device_is_ready(cfg->gpio_int.port)) {
if (!gpio_is_ready_dt(&cfg->gpio_int)) {
LOG_ERR("gpio_int gpio not ready");
return -ENODEV;
}