Skip to content

Commit ace0ebe

Browse files
committed
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 <[email protected]>
1 parent 0c3b532 commit ace0ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-crystalcove.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static inline int to_reg(int gpio, enum ctrl_register reg_type)
9292
case 0x5e:
9393
return GPIOPANELCTL;
9494
default:
95-
return -EOPNOTSUPP;
95+
return -ENOTSUPP;
9696
}
9797
}
9898

0 commit comments

Comments
 (0)