Message ID | 20250531195801.3632110-2-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers | show |
Series | gpio: More cleanups to legacy header | expand |
On Sat, May 31, 2025 at 9:58 PM Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > There is no user for the legacy 'struct gpio', remove it for good. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Good riddance. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
diff --git a/include/linux/gpio.h b/include/linux/gpio.h index c1ec62c11ed3..1893e5d4c0c9 100644 --- a/include/linux/gpio.h +++ b/include/linux/gpio.h @@ -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>
There is no user for the legacy 'struct gpio', remove it for good. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- include/linux/gpio.h | 12 ------------ 1 file changed, 12 deletions(-)