From: Nathael Pajani Date: Mon, 26 Sep 2016 16:11:51 +0000 (+0200) Subject: Return a more explicit error value X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=69e72932282faf3fabe04c5c25622450ae0bf768;p=soft%2Flpc82x%2Fcore Return a more explicit error value --- diff --git a/drivers/gpio.c b/drivers/gpio.c index 0b3a8b2..1a10b4c 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -97,7 +97,7 @@ int set_gpio_callback(void (*callback) (uint32_t), const struct pio* gpio, uint8 } /* If not found, return. */ if (irq == NB_PININT_INTERRUPTS) { - return -1; + return -ENODEV; } /* Power on the Pin interrupt subsystem */