gpiolib: Do not mention legacy GPIOF_* in the code
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 26 Mar 2024 18:11:20 +0000 (20:11 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 3 Apr 2024 11:14:14 +0000 (13:14 +0200)
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib.c

index 6c963a4fbc72fd8fd989050c2b349560125d297d..f20367b1ea8eee51f845b4a19b0df8c6644a3524 100644 (file)
@@ -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;