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:
parent
8a119a4319
commit
c35b90890a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue