Skip to content

Commit 2235b26

Browse files
author
Bartosz Golaszewski
committed
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>
1 parent 64f89f6 commit 2235b26

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

include/linux/gpio/driver.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -684,16 +684,6 @@ int gpiochip_populate_parent_fwspec_fourcell(struct gpio_chip *gc,
684684

685685
#endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */
686686

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-
697687
#ifdef CONFIG_GPIOLIB_IRQCHIP
698688
int gpiochip_irqchip_add_domain(struct gpio_chip *gc,
699689
struct irq_domain *domain);

include/linux/gpio/generic.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99

1010
struct device;
1111

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+
1222
/**
1323
* struct gpio_generic_chip_config - Generic GPIO chip configuration data
1424
* @dev: Parent device of the new GPIO chip (compulsory).

0 commit comments

Comments
 (0)