From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx> Fixes the following checkpatch warning: WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP According to include/linux/errno.h, ENOTSUPP is "Defined for the NFSv3 protocol", so replace it with preferred EOPNOTSUPP. Similar to commit c7581a414d28 ("drm: Use EOPNOTSUPP, not ENOTSUPP"). Signed-off-by: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx> --- drivers/tty/serial/max310x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index e39d8ea51e4e..12219b22b880 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -1217,7 +1217,7 @@ static int max310x_gpio_set_config(struct gpio_chip *chip, unsigned int offset, 1 << ((offset % 4) + 4), 0); return 0; default: - return -ENOTSUPP; + return -EOPNOTSUPP; } } #endif -- 2.39.2