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
|
@ -99,7 +99,7 @@ static int regulator_fixed_init(const struct device *dev)
|
|||
init_enabled = regulator_common_is_init_enabled(dev);
|
||||
|
||||
if (cfg->enable.port != NULL) {
|
||||
if (!device_is_ready(cfg->enable.port)) {
|
||||
if (!gpio_is_ready_dt(&cfg->enable)) {
|
||||
LOG_ERR("GPIO port: %s not ready", cfg->enable.port->name);
|
||||
return -ENODEV;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue