summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-05 19:26:22 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-04-05 20:12:39 +0300
commitace0ebe5c98d66889f19e0f30e2518d0c58d0e04 (patch)
tree1ba7229a68ce0ce6df2e4308161705d7120fe980
parent0c3b532ad3fbf82884a2e7e83e37c7dcdd4d1d99 (diff)
downloadlinux-stable-ace0ebe5c98d66889f19e0f30e2518d0c58d0e04.tar.gz
linux-stable-ace0ebe5c98d66889f19e0f30e2518d0c58d0e04.tar.bz2
linux-stable-ace0ebe5c98d66889f19e0f30e2518d0c58d0e04.zip
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>
-rw-r--r--drivers/gpio/gpio-crystalcove.c2
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;
}
}