Skip to content

Commit d4340ff

Browse files
author
Bartosz Golaszewski
committed
gpiolib: define GPIOD_FLAG_SHARED
Define a new GPIO descriptor flag for marking pins that are shared by multiple consumer. This flag will be used in several places so we need to do it in advance and separately from other changes. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20251112-gpio-shared-v4-2-b51f97b1abd8@linaro.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 197b3f3 commit d4340ff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpio/gpiolib.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ struct gpio_desc {
204204
#define GPIOD_FLAG_EDGE_FALLING 17 /* GPIO CDEV detects falling edge events */
205205
#define GPIOD_FLAG_EVENT_CLOCK_REALTIME 18 /* GPIO CDEV reports REALTIME timestamps in events */
206206
#define GPIOD_FLAG_EVENT_CLOCK_HTE 19 /* GPIO CDEV reports hardware timestamps in events */
207+
#define GPIOD_FLAG_SHARED 20 /* GPIO is shared by multiple consumers */
207208

208209
/* Connection label */
209210
struct gpio_desc_label __rcu *label;

0 commit comments

Comments
 (0)