Skip to content

Commit 6deb843

Browse files
author
Bartosz Golaszewski
committed
gpio: deprecate the GPIOD_FLAGS_BIT_NONEXCLUSIVE flag
The non-exclusive GPIO request flag looks like a functional feature but is in fact a workaround for a corner-case that got out of hand. It should be removed so deprecate it officially so that nobody uses it anymore. Acked-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/20250401-gpio-todo-remove-nonexclusive-v2-1-7c1380797b0d@linaro.org Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8323f3a commit 6deb843

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/gpio/consumer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ struct gpio_descs {
3131
#define GPIOD_FLAGS_BIT_DIR_OUT BIT(1)
3232
#define GPIOD_FLAGS_BIT_DIR_VAL BIT(2)
3333
#define GPIOD_FLAGS_BIT_OPEN_DRAIN BIT(3)
34+
/* GPIOD_FLAGS_BIT_NONEXCLUSIVE is DEPRECATED, don't use in new code. */
3435
#define GPIOD_FLAGS_BIT_NONEXCLUSIVE BIT(4)
3536

3637
/**

0 commit comments

Comments
 (0)