Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

+1 -1
+1 -1
drivers/gpio/gpio-wcove.c
··· 104 104 unsigned int reg = type == CTRL_IN ? GPIO_IN_CTRL_BASE : GPIO_OUT_CTRL_BASE; 105 105 106 106 if (gpio >= WCOVE_GPIO_NUM) 107 - return -EOPNOTSUPP; 107 + return -ENOTSUPP; 108 108 109 109 return reg + gpio; 110 110 }