Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c744a9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a0c966b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
		case 0x5e:
			return GPIOPANELCTL;
		default:
			return -EOPNOTSUPP;
			return -ENOTSUPP;
		}
	}