drivers: gpio: gpio_get_pending_int: s/ENOTSUP/ENOSYS
Because -ENOSYS is the right error code to be used if op is not implemented. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
b03ef6c8ba
commit
35500e4d15
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue