Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: generic: move GPIO_GENERIC_ flags to the correct header

These flags are specific to gpio-mmio and belong in linux/gpio/generic.h
so move them there.

Link: https://lore.kernel.org/r/20250917-gpio-generic-flags-v1-2-69f51fee8c89@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

+10 -10
-10
include/linux/gpio/driver.h
··· 684 684 685 685 #endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */ 686 686 687 - #define GPIO_GENERIC_BIG_ENDIAN BIT(0) 688 - #define GPIO_GENERIC_UNREADABLE_REG_SET BIT(1) /* reg_set is unreadable */ 689 - #define GPIO_GENERIC_UNREADABLE_REG_DIR BIT(2) /* reg_dir is unreadable */ 690 - #define GPIO_GENERIC_BIG_ENDIAN_BYTE_ORDER BIT(3) 691 - #define GPIO_GENERIC_READ_OUTPUT_REG_SET BIT(4) /* reg_set stores output value */ 692 - #define GPIO_GENERIC_NO_OUTPUT BIT(5) /* only input */ 693 - #define GPIO_GENERIC_NO_SET_ON_INPUT BIT(6) 694 - #define GPIO_GENERIC_PINCTRL_BACKEND BIT(7) /* Call pinctrl direction setters */ 695 - #define GPIO_GENERIC_NO_INPUT BIT(8) /* only output */ 696 - 697 687 #ifdef CONFIG_GPIOLIB_IRQCHIP 698 688 int gpiochip_irqchip_add_domain(struct gpio_chip *gc, 699 689 struct irq_domain *domain);
+10
include/linux/gpio/generic.h
··· 9 9 10 10 struct device; 11 11 12 + #define GPIO_GENERIC_BIG_ENDIAN BIT(0) 13 + #define GPIO_GENERIC_UNREADABLE_REG_SET BIT(1) /* reg_set is unreadable */ 14 + #define GPIO_GENERIC_UNREADABLE_REG_DIR BIT(2) /* reg_dir is unreadable */ 15 + #define GPIO_GENERIC_BIG_ENDIAN_BYTE_ORDER BIT(3) 16 + #define GPIO_GENERIC_READ_OUTPUT_REG_SET BIT(4) /* reg_set stores output value */ 17 + #define GPIO_GENERIC_NO_OUTPUT BIT(5) /* only input */ 18 + #define GPIO_GENERIC_NO_SET_ON_INPUT BIT(6) 19 + #define GPIO_GENERIC_PINCTRL_BACKEND BIT(7) /* Call pinctrl direction setters */ 20 + #define GPIO_GENERIC_NO_INPUT BIT(8) /* only output */ 21 + 12 22 /** 13 23 * struct gpio_generic_chip_config - Generic GPIO chip configuration data 14 24 * @dev: Parent device of the new GPIO chip (compulsory).