diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-05 19:26:22 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-04-05 20:12:39 +0300 |
commit | ace0ebe5c98d66889f19e0f30e2518d0c58d0e04 (patch) | |
tree | 1ba7229a68ce0ce6df2e4308161705d7120fe980 /drivers/gpio/gpio-crystalcove.c | |
parent | 0c3b532ad3fbf82884a2e7e83e37c7dcdd4d1d99 (diff) |
gpio: crystalcove: 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.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-crystalcove.c')
-rw-r--r-- | drivers/gpio/gpio-crystalcove.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c index 1ee62cd58582..25db014494a4 100644 --- a/drivers/gpio/gpio-crystalcove.c +++ b/drivers/gpio/gpio-crystalcove.c @@ -92,7 +92,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type) case 0x5e: return GPIOPANELCTL; default: - return -EOPNOTSUPP; + return -ENOTSUPP; } } |