diff --git a/include/zephyr/drivers/gpio.h b/include/zephyr/drivers/gpio.h index 2d0b1fa133e..99d6d677a65 100644 --- a/include/zephyr/drivers/gpio.h +++ b/include/zephyr/drivers/gpio.h @@ -1800,6 +1800,7 @@ static inline int gpio_remove_callback_dt(const struct gpio_dt_spec *spec, * * @retval status != 0 if at least one gpio interrupt is pending. * @retval 0 if no gpio interrupt is pending. + * @retval -ENOSYS If driver does not implement the operation */ __syscall int gpio_get_pending_int(const struct device *dev); @@ -1809,7 +1810,7 @@ static inline int z_impl_gpio_get_pending_int(const struct device *dev) (const struct gpio_driver_api *)dev->api; if (api->get_pending_int == NULL) { - return -ENOTSUP; + return -ENOSYS; } return api->get_pending_int(dev);