]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: Remove unused 'struct gpio' definition
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 31 May 2025 19:55:43 +0000 (22:55 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 10 Jun 2025 08:08:34 +0000 (10:08 +0200)
There is no user for the legacy 'struct gpio', remove it for good.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250531195801.3632110-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
include/linux/gpio.h

index 61e9f43c082aeab9a226c93c7f757c30c394f192..8697ab81789812633d25c9f9346c195b6be7a208 100644 (file)
@@ -21,18 +21,6 @@ struct device;
 #define GPIOF_OUT_INIT_LOW     ((0 << 0) | (0 << 1))
 #define GPIOF_OUT_INIT_HIGH    ((0 << 0) | (1 << 1))
 
-/**
- * struct gpio - a structure describing a GPIO with configuration
- * @gpio:      the GPIO number
- * @flags:     GPIO configuration as specified by GPIOF_*
- * @label:     a literal description string of this GPIO
- */
-struct gpio {
-       unsigned        gpio;
-       unsigned long   flags;
-       const char      *label;
-};
-
 #ifdef CONFIG_GPIOLIB
 
 #include <linux/gpio/consumer.h>