gpio: crystalcove: Use -ENOTSUPP consistently
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 5 Apr 2024 16:26:22 +0000 (19:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:55 +0000 (11:50 +0200)
commit7ca04b83c1097c17323a91a1479e801646dd5161
tree2b31bccf2bae0cd1beb7b7ca1c0ff0df99fb2175
parentc5ad5c7a1eedfd36de522cd14e378555bceeb993
gpio: crystalcove: Use -ENOTSUPP consistently

[ Upstream commit ace0ebe5c98d66889f19e0f30e2518d0c58d0e04 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-crystalcove.c