From: Andy Shevchenko Date: Tue, 26 Mar 2024 18:11:20 +0000 (+0200) Subject: gpiolib: Do not mention legacy GPIOF_* in the code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1685f72a6dcc55b6a5e50c127b9a0165e8c682a3;p=linux.git 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 Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index 6c963a4fbc72f..f20367b1ea8ee 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -365,7 +365,10 @@ int gpiod_get_direction(struct gpio_desc *desc) if (ret < 0) return ret; - /* GPIOF_DIR_IN or other positive, otherwise GPIOF_DIR_OUT */ + /* + * GPIO_LINE_DIRECTION_IN or other positive, + * otherwise GPIO_LINE_DIRECTION_OUT. + */ if (ret > 0) ret = 1;