Skip to content

Commit 0c3b532

Browse files
committed
gpio: wcove: Use -ENOTSUPP consistently
The GPIO library expects the drivers to return -ENOTSUPP in some cases and not using analogue POSIX code. Make the driver to follow this. Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
1 parent 4cece76 commit 0c3b532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-wcove.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static inline int to_reg(int gpio, enum ctrl_register type)
104104
unsigned int reg = type == CTRL_IN ? GPIO_IN_CTRL_BASE : GPIO_OUT_CTRL_BASE;
105105

106106
if (gpio >= WCOVE_GPIO_NUM)
107-
return -EOPNOTSUPP;
107+
return -ENOTSUPP;
108108

109109
return reg + gpio;
110110
}

0 commit comments

Comments
 (0)