Skip to content

Commit 6219132

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpio: pcie-idio-24: 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]> Acked-by: William Breathitt Gray <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 3de1436 commit 6219132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-pcie-idio-24.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static int idio_24_reg_mask_xlate(struct gpio_regmap *const gpio, const unsigned
267267
case IDIO_24_CONTROL_REG:
268268
/* We can only set direction for TTL/CMOS lines */
269269
if (offset < 48)
270-
return -EOPNOTSUPP;
270+
return -ENOTSUPP;
271271

272272
*reg = IDIO_24_CONTROL_REG;
273273
*mask = CONTROL_REG_OUT_MODE;

0 commit comments

Comments
 (0)