Skip to content

Commit 1685f72

Browse files
andy-shevBartosz Golaszewski
authored andcommitted
gpiolib: Do not mention legacy GPIOF_* in the code
We are going to remove legacy API from kernel, don't mention it in the code that does not use it already for a while. Signed-off-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent dbcedec commit 1685f72

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpio/gpiolib.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,10 @@ int gpiod_get_direction(struct gpio_desc *desc)
365365
if (ret < 0)
366366
return ret;
367367

368-
/* GPIOF_DIR_IN or other positive, otherwise GPIOF_DIR_OUT */
368+
/*
369+
* GPIO_LINE_DIRECTION_IN or other positive,
370+
* otherwise GPIO_LINE_DIRECTION_OUT.
371+
*/
369372
if (ret > 0)
370373
ret = 1;
371374

0 commit comments

Comments
 (0)