drivers/gpio: Act relevantly if GPIO_INT is an unsupported flag

Using right error code, and no need to populate callback related API
functions.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-11-15 10:05:48 +01:00 committed by Anas Nashif
commit ea5d01b41c
4 changed files with 12 additions and 36 deletions

View file

@ -45,7 +45,7 @@ static int gpio_mcux_configure(struct device *dev,
/* Check if GPIO port supports interrupts */
if ((flags & GPIO_INT) && ((config->flags & GPIO_INT) == 0)) {
return -EINVAL;
return -ENOTSUP;
}
/* The flags contain options that require touching registers in the