mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-11 11:55:28 +02:00
gpio: crystalcove: Use -ENOTSUPP consistently
[ Upstream commit ace0ebe5c9
]
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>
This commit is contained in:
parent
d77f56b649
commit
ac259d3fa3
|
@ -92,7 +92,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
|
||||||
case 0x5e:
|
case 0x5e:
|
||||||
return GPIOPANELCTL;
|
return GPIOPANELCTL;
|
||||||
default:
|
default:
|
||||||
return -EOPNOTSUPP;
|
return -ENOTSUPP;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user