gpio: Error GPIO_INT with GPIO_DIR_OUT consistently.

Several gpio drivers consider GPIO_INT with GPIO_DIR_OUT to be illegal
and return an errno code.  Use the same errno code across all drivers.

Change-Id: I1594df0cfdf96194685c83c34dff36261896f2de
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2017-02-06 23:14:20 +00:00 committed by Anas Nashif
commit c35b90890a
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ static int gpio_mcux_configure(struct device *dev,
/* Check for an invalid pin configuration */
if ((flags & GPIO_INT) && (flags & GPIO_DIR_OUT)) {
return -ENOTSUP;
return -EINVAL;
}
/* The flags contain options that require touching registers in the