From 69e72932282faf3fabe04c5c25622450ae0bf768 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Mon, 26 Sep 2016 18:11:51 +0200 Subject: [PATCH] Return a more explicit error value --- drivers/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.43.0